We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4459bf7 commit 49ac315Copy full SHA for 49ac315
tests/config/tests.py
@@ -460,7 +460,7 @@ def test_config_all_upper_case():
460
461
462
def test_regex_validator_without_match():
463
- validator = RegexValidator("\d")
+ validator = RegexValidator(r"\d")
464
with pytest.raises(ConfigurationError) as e:
465
validator("foo", "field")
466
assert "does not match pattern" in e.value.args[0]
@@ -474,7 +474,7 @@ def test_unit_validator_without_match():
474
475
476
def test_unit_validator_with_unsupported_unit():
477
- validator = UnitValidator("(\d+)(s)", "secs", {})
+ validator = UnitValidator(r"(\d+)(s)", "secs", {})
478
479
validator("10s", "field")
480
assert "is not a supported unit" in e.value.args[0]
0 commit comments