Skip to content

Commit

Permalink
💄format code
Browse files Browse the repository at this point in the history
  • Loading branch information
fcurella committed Apr 5, 2024
1 parent f5443c8 commit db81efd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions faker/providers/phone_number/sk_SK/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ class Provider(PhoneNumberProvider):
# pattern I.
"00421 2 ########",
"+421 2 ########",

# patter II.
"00421 3# ### ####",
"00421 4# ### ####",
"00421 5# ### ####",
"+421 3# ### ####",
"+421 4# ### ####",
"+421 5# ### ####",

# pattern III.
"00421 90# ### ###",
"00421 91# ### ###",
Expand Down
3 changes: 2 additions & 1 deletion tests/providers/test_phone_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit db81efd

Please sign in to comment.