aboutsummaryrefslogtreecommitdiff
path: root/tests/builder/validation.test.py
diff options
context:
space:
mode:
authornatsuoto <[email protected]>2026-07-16 17:31:49 +0530
committernatsuoto <[email protected]>2026-07-16 17:31:49 +0530
commit1b43c8dc09adb9b54609cc8a1916c99eb6fe75c9 (patch)
tree7731af50ed9117f8ac3d200591c3be23818d7b19 /tests/builder/validation.test.py
parentb7ae2f3885d5ff84237c9da8bc0c64fe1a509465 (diff)
downloadedify-1b43c8dc09adb9b54609cc8a1916c99eb6fe75c9.tar.xz
edify-1b43c8dc09adb9b54609cc8a1916c99eb6fe75c9.zip
chore: enforce fully strict static typing across library, tests, and tooling with zero suppressions
Diffstat (limited to 'tests/builder/validation.test.py')
-rw-r--r--tests/builder/validation.test.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/builder/validation.test.py b/tests/builder/validation.test.py
index a1b57d7..a528aa2 100644
--- a/tests/builder/validation.test.py
+++ b/tests/builder/validation.test.py
@@ -13,8 +13,6 @@ from edify.errors.anchors import (
StartInputAlreadyDefinedError,
)
from edify.errors.input import (
- MustBeAStringError,
- MustBeInstanceError,
MustBeIntegerGreaterThanZeroError,
MustBeLessThanError,
MustBeOneCharacterError,
@@ -41,51 +39,26 @@ def test_end_of_input_twice_raises():
RegexBuilder().end_of_input().end_of_input()
-def test_named_capture_non_string_raises():
- with pytest.raises(MustBeAStringError):
- RegexBuilder().named_capture(42)
-
-
def test_named_capture_empty_string_raises():
with pytest.raises(MustBeOneCharacterError):
RegexBuilder().named_capture("")
-def test_string_non_string_raises():
- with pytest.raises(MustBeAStringError):
- RegexBuilder().string(42)
-
-
def test_string_empty_raises():
with pytest.raises(MustBeOneCharacterError):
RegexBuilder().string("")
-def test_char_non_string_raises():
- with pytest.raises(MustBeAStringError):
- RegexBuilder().char(42)
-
-
def test_range_first_codepoint_not_less_than_second_raises():
with pytest.raises(MustHaveASmallerValueError):
RegexBuilder().range("z", "a")
-def test_anything_but_string_non_string_raises():
- with pytest.raises(MustBeAStringError):
- RegexBuilder().anything_but_string(42)
-
-
def test_anything_but_string_empty_raises():
with pytest.raises(MustBeOneCharacterError):
RegexBuilder().anything_but_string("")
-def test_anything_but_chars_non_string_raises():
- with pytest.raises(MustBeAStringError):
- RegexBuilder().anything_but_chars(42)
-
-
def test_anything_but_chars_empty_raises():
with pytest.raises(MustBeOneCharacterError):
RegexBuilder().anything_but_chars("")
@@ -151,8 +124,3 @@ def test_to_regex_with_open_frame_raises():
unfinished = RegexBuilder().capture().digit()
with pytest.raises(CannotCallSubexpressionError):
unfinished.to_regex()
-
-
-def test_subexpression_non_builder_raises():
- with pytest.raises(MustBeInstanceError):
- RegexBuilder().subexpression("not a builder")