Skip to content

Commit

Permalink
add return type hints to test
Browse files Browse the repository at this point in the history
  • Loading branch information
hf-kklein committed Oct 6, 2023
1 parent 6bae93f commit f3a7594
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_adresse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f3a7594

Please sign in to comment.