Skip to content

Commit

Permalink
fomrat code
Browse files Browse the repository at this point in the history
  • Loading branch information
fcurella committed Mar 18, 2024
1 parent 871973f commit daaab5a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/providers/test_address.py
Original file line number Diff line number Diff line change
Expand Up @@ -2162,10 +2162,16 @@ def test_building_number(self, faker, num_samples):
def test_city(self, faker, num_samples):
# generating possible variations for cities for hu_Hu locale
real_cities = [city.lower() for city in HuHuAddressProvider.real_city_names]
cities_part_suffix = [''.join([part, suffix]) for part in HuHuAddressProvider.city_parts
for suffix in HuHuAddressProvider.city_suffixes]
cities_prefix_part_suffix = [''.join([pref, part_suffix]) for pref in HuHuAddressProvider.city_prefs
for part_suffix in cities_part_suffix]
cities_part_suffix = [
"".join([part, suffix])
for part in HuHuAddressProvider.city_parts
for suffix in HuHuAddressProvider.city_suffixes
]
cities_prefix_part_suffix = [
"".join([pref, part_suffix])
for pref in HuHuAddressProvider.city_prefs
for part_suffix in cities_part_suffix
]
cities = real_cities + cities_part_suffix + cities_prefix_part_suffix
for _ in range(num_samples):
city = faker.city()
Expand Down

0 comments on commit daaab5a

Please sign in to comment.