diff options
Diffstat (limited to 'dev-python/Faker/files/Faker-5.6.5-ukposttest.patch')
-rw-r--r-- | dev-python/Faker/files/Faker-5.6.5-ukposttest.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-python/Faker/files/Faker-5.6.5-ukposttest.patch b/dev-python/Faker/files/Faker-5.6.5-ukposttest.patch new file mode 100644 index 000000000000..3cd84c171cf4 --- /dev/null +++ b/dev-python/Faker/files/Faker-5.6.5-ukposttest.patch @@ -0,0 +1,33 @@ +diff -Naur Faker-5.6.5.orig/tests/providers/test_address.py Faker-5.6.5/tests/providers/test_address.py +--- Faker-5.6.5.orig/tests/providers/test_address.py 2021-01-20 16:16:43.000000000 +0100 ++++ Faker-5.6.5/tests/providers/test_address.py 2021-01-23 10:12:35.826357768 +0100 +@@ -4,8 +4,6 @@ + + import pytest + +-from ukpostcodeparser.parser import parse_uk_postcode +- + from faker.providers.address.cs_CZ import Provider as CsCzAddressProvider + from faker.providers.address.da_DK import Provider as DaDkAddressProvider + from faker.providers.address.de_AT import Provider as DeAtAddressProvider +@@ -377,20 +375,6 @@ + assert re.fullmatch(r'(?:Apt\.|Suite) \d{3}', secondary_address) + + +-class TestEnGb: +- """Test en_GB address provider methods""" +- +- def test_postcode(self, faker, num_samples): +- for _ in range(num_samples): +- assert isinstance(parse_uk_postcode(faker.postcode()), tuple) +- +- def test_county(self, faker, num_samples): +- for _ in range(num_samples): +- county = faker.county() +- assert isinstance(county, str) +- assert county in EnGbAddressProvider.counties +- +- + class TestEnIe: + """Test en_IE address provider methods""" + |