diff options
| author | natsuoto <[email protected]> | 2026-07-16 17:31:49 +0530 |
|---|---|---|
| committer | natsuoto <[email protected]> | 2026-07-16 17:31:49 +0530 |
| commit | 1b43c8dc09adb9b54609cc8a1916c99eb6fe75c9 (patch) | |
| tree | 7731af50ed9117f8ac3d200591c3be23818d7b19 /tests/pattern/composition.test.py | |
| parent | b7ae2f3885d5ff84237c9da8bc0c64fe1a509465 (diff) | |
| download | edify-1b43c8dc09adb9b54609cc8a1916c99eb6fe75c9.tar.xz edify-1b43c8dc09adb9b54609cc8a1916c99eb6fe75c9.zip | |
chore: enforce fully strict static typing across library, tests, and tooling with zero suppressions
Diffstat (limited to 'tests/pattern/composition.test.py')
| -rw-r--r-- | tests/pattern/composition.test.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/pattern/composition.test.py b/tests/pattern/composition.test.py index 34d6f89..8242e0e 100644 --- a/tests/pattern/composition.test.py +++ b/tests/pattern/composition.test.py @@ -1,9 +1,6 @@ """Tests for the :class:`Pattern` composition surface.""" -import pytest - from edify import Pattern, RegexBuilder -from edify.errors.input import MustBeInstanceError def test_pattern_builds_the_same_element_tree_as_a_builder(): @@ -34,8 +31,3 @@ def test_subexpression_still_accepts_a_pattern(): pattern = Pattern().at_least(3).word() embedded = RegexBuilder().subexpression(pattern) assert embedded.to_regex_string() == "\\w{3,}" - - -def test_subexpression_rejects_non_builder_input(): - with pytest.raises(MustBeInstanceError): - RegexBuilder().subexpression("not a pattern") |
