From db81efda52c15c928a36d8aac9e7a3cc1fd47b57 Mon Sep 17 00:00:00 2001 From: Flavio Curella Date: Fri, 5 Apr 2024 17:31:47 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84format=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- faker/providers/phone_number/sk_SK/__init__.py | 2 -- tests/providers/test_phone_number.py | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/faker/providers/phone_number/sk_SK/__init__.py b/faker/providers/phone_number/sk_SK/__init__.py index 6f782a2910..e5ec4a1d44 100644 --- a/faker/providers/phone_number/sk_SK/__init__.py +++ b/faker/providers/phone_number/sk_SK/__init__.py @@ -6,7 +6,6 @@ class Provider(PhoneNumberProvider): # pattern I. "00421 2 ########", "+421 2 ########", - # patter II. "00421 3# ### ####", "00421 4# ### ####", @@ -14,7 +13,6 @@ class Provider(PhoneNumberProvider): "+421 3# ### ####", "+421 4# ### ####", "+421 5# ### ####", - # pattern III. "00421 90# ### ###", "00421 91# ### ###", diff --git a/tests/providers/test_phone_number.py b/tests/providers/test_phone_number.py index d00f257ccc..b5e59786d4 100644 --- a/tests/providers/test_phone_number.py +++ b/tests/providers/test_phone_number.py @@ -80,7 +80,8 @@ def test_phone_number(self, faker, num_samples): pattern: Pattern = re.compile( r"(^(00421|\+421)? ?[2] ?[0-9]{8}$)|" r"(^(00421|\+421)? ?[3-5][0-9] ?[0-9]{3} ?[0-9]{4}$)|" - r"(^(00421|\+421)? ?[9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$)") + r"(^(00421|\+421)? ?[9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$)" + ) for _ in range(num_samples): phone_number = faker.phone_number()