Skip to content

Commit

Permalink
add type annotations for set
Browse files Browse the repository at this point in the history
  • Loading branch information
elfkuzco committed Aug 23, 2024
1 parent bfd4417 commit ae7183c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions backend/tests/db/test_mirrors.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,14 @@ def test_update_mirror_countries_from_regions(
):

regions = [asia_region, africa_region, europe_region]
expected_country_codes = set()
region_codes = set()
expected_country_codes: set[str] = set()
region_codes: set[str] = set()

for region in regions:
region_codes.add(region.code)
for country in region.countries:
expected_country_codes.add(country.code)

if db_mirror.country:
expected_country_codes.add(db_mirror.country_code)

db_mirror = update_mirror_countries_from_regions(dbsession, db_mirror, region_codes)

assert db_mirror.other_countries is not None
Expand Down

0 comments on commit ae7183c

Please sign in to comment.