From f3a7594f3d30600a536ed9328b839cac513345e0 Mon Sep 17 00:00:00 2001 From: konstantin Date: Fri, 6 Oct 2023 11:45:38 +0200 Subject: [PATCH] add return type hints to test --- tests/test_adresse.py | 2 +- tests/test_region.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_adresse.py b/tests/test_adresse.py index aebc3cc16..842f8d829 100644 --- a/tests/test_adresse.py +++ b/tests/test_adresse.py @@ -242,7 +242,7 @@ def test_serialization_with_all_possible_fields(self, address_json: str, adresse assert deserialized_address == adresse - def test_id(self): + def test_id(self) -> None: adresse = Adresse( id=str(uuid.uuid4()), ort="Grünwald", diff --git a/tests/test_region.py b/tests/test_region.py index 5f86f7753..bfafbf284 100644 --- a/tests/test_region.py +++ b/tests/test_region.py @@ -43,7 +43,7 @@ def test_region_positiv_liste_required_and_negativ_liste_not_required(self) -> N assert "1 validation error" in str(excinfo.value) assert "too_short" in str(excinfo.value) - def test_region_id(self): + def test_region_id(self) -> None: region = Region( bezeichnung="Bikini Bottom", id="foo",