Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion address/tests/test_api_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ def test_filter_addresses_by_street_letter(api_client: APIClient):
@mark.django_db
def test_filter_addresses_by_municipality(api_client: APIClient):
municipality = MunicipalityFactory(name="Helsinki")
other_municipality = MunicipalityFactory(name="Turpere")
match = AddressFactory(municipality=municipality)
AddressFactory()
AddressFactory(municipality=other_municipality)
serializer = AddressSerializer()
response = api_client.get(
reverse("address:address-list"), {"municipality": municipality.name}
Expand Down
Loading