Skip to content

Commit 0ff87bb

Browse files
committed
Fixing tooling errors
1 parent 06d7d4e commit 0ff87bb

4 files changed

Lines changed: 16 additions & 6 deletions

File tree

‎tests/card_test.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"""Tests for validators.card (card_number and the issuer validators) using ISP, Logic Coverage, and boundary/branch checks."""
1+
"""Tests for validators.card (card_number and the issuer validators)
2+
using ISP, Logic Coverage, and boundary/branch checks."""
23

34
import pytest
45

‎tests/country_test.py‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"""Tests for validators.country (country_code, calling_code, and currency) using ISP, Logic Coverage, and boundary/branch checks."""
1+
"""Tests for validators.country (country_code, calling_code, and currency)
2+
using ISP, Logic Coverage, and boundary/branch checks."""
23

34
import re
45

@@ -14,7 +15,6 @@
1415
country_code,
1516
currency,
1617
)
17-
1818
from validators.utils import ValidationError
1919

2020
_BYTES_AUTO_DETECT_XFAIL = pytest.mark.xfail(
@@ -1121,6 +1121,7 @@ def test_currency_invalid_type_with_skip_symbols_false() -> None:
11211121
)
11221122

11231123
def test_calling_code_valid_boundaries(value: str) -> None:
1124+
"""Test calling_code with valid boundary values from _calling_codes."""
11241125
assert calling_code(value) is True
11251126

11261127

@@ -1163,6 +1164,7 @@ def test_calling_code_valid_boundaries(value: str) -> None:
11631164
)
11641165

11651166
def test_calling_code_invalid_formatting(value: str) -> None:
1167+
"""Test calling_code with invalid formatting edge cases."""
11661168
_assert_result(calling_code(value), False)
11671169

11681170

@@ -1245,6 +1247,7 @@ def test_country_code_defaults_are_auto_and_case_sensitive() -> None:
12451247
def test_country_code_valid_boundaries_and_case(
12461248
value: str, iso_format: str, ignore_case: bool
12471249
) -> None:
1250+
"""Test country_code with valid boundary values from _alpha2, _alpha3, and _numeric."""
12481251
assert country_code(value, iso_format=iso_format, ignore_case=ignore_case) is True
12491252

12501253

@@ -1359,6 +1362,7 @@ def test_country_code_valid_boundaries_and_case(
13591362
def test_country_code_invalid_cross_format_and_edge_cases(
13601363
value: str, iso_format: str, ignore_case: bool
13611364
) -> None:
1365+
"""Test country_code with invalid cross-format and edge cases."""
13621366
_assert_result(
13631367
country_code(value, iso_format=iso_format, ignore_case=ignore_case),
13641368
False,
@@ -1436,6 +1440,7 @@ def test_currency_defaults_skip_symbols_and_case_sensitive() -> None:
14361440
def test_currency_valid_boundaries_and_symbols(
14371441
value: str, skip_symbols: bool, ignore_case: bool
14381442
) -> None:
1443+
"""Test currency with valid boundary values from _currency_iso4217 and _currency_symbols."""
14391444
assert currency(value, skip_symbols=skip_symbols, ignore_case=ignore_case) is True
14401445

14411446

@@ -1495,6 +1500,7 @@ def test_currency_valid_boundaries_and_symbols(
14951500
def test_currency_invalid_edge_cases(
14961501
value: str, skip_symbols: bool, ignore_case: bool
14971502
) -> None:
1503+
"""Test currency with invalid edge cases."""
14981504
_assert_result(
14991505
currency(value, skip_symbols=skip_symbols, ignore_case=ignore_case),
15001506
False,

‎tests/ip_address_test.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"""Tests for validators.ip_address (ipv4 and ipv6) using ISP, Logic Coverage, and boundary checks."""
1+
"""Tests for validators.ip_address (ipv4 and ipv6)
2+
using ISP, Logic Coverage, and boundary checks."""
23

34
import pytest
45

@@ -548,7 +549,8 @@ def test_ipv6_isp_option_flags(value, kwargs, is_valid):
548549
("value", "private", "is_valid"),
549550
[
550551
# Predicate P1 (_check_private_ip): A or B or C
551-
# A: any(value.startswith(l_bit) for l_bit in {"10.", "192.168.", "169.254.", "127.", "0.0.0.0"})
552+
# A: any(value.startswith(l_bit) for l_bit in
553+
# {"10.", "192.168.", "169.254.", "127.", "0.0.0.0"})
552554
# B: re.match(r"^172\.(?:1[6-9]|2\d|3[0-1])\.", value)
553555
# C: re.match(r"^(?:22[4-9]|23[0-9]|24[0-9]|25[0-5])\.", value)
554556
#

‎tests/mac_address_test.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"""Tests for validators.mac_address using ISP, Logic Coverage, and boundary/branch checks."""
1+
"""Tests for validators.mac_address using
2+
ISP, Logic Coverage, and boundary/branch checks."""
23

34
import pytest
45

0 commit comments

Comments
 (0)