From f5443c8c2e2d8556f6f64152bc49ed3190f7c42d Mon Sep 17 00:00:00 2001 From: jist <95856749+george0st@users.noreply.github.com> Date: Fri, 5 Apr 2024 22:03:37 +0200 Subject: [PATCH] ... --- tests/providers/test_phone_number.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/providers/test_phone_number.py b/tests/providers/test_phone_number.py index bf8c515035..d00f257ccc 100644 --- a/tests/providers/test_phone_number.py +++ b/tests/providers/test_phone_number.py @@ -78,10 +78,10 @@ class TestSkSk: def test_phone_number(self, faker, num_samples): pattern: Pattern = re.compile( - r"(^(00421|\+421)? ?[2-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$)|" r"(^(00421|\+421)? ?[2] ?[0-9]{8}$)|" - r"(^(00421|\+421)? ?[3-5][0-9] ?[0-9]{3} ?[0-9]{4}$)" - ) + 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}$)") + for _ in range(num_samples): phone_number = faker.phone_number() assert pattern.fullmatch(phone_number)