Skip to content

Commit 4cdde89

Browse files
committed
remove tests that check for type rule conflicts
1 parent fc3c98b commit 4cdde89

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

tests/unit/test_create_json_schema.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -365,36 +365,6 @@ def test_get_validation_rule_based_fields_with_explicit_type(
365365
assert maximum == expected_max
366366
assert pattern == expected_pattern
367367

368-
369-
@pytest.mark.parametrize(
370-
"validation_rules, explicit_type",
371-
[
372-
(["str"], JSONSchemaType.INTEGER),
373-
(["inRange 50 100"], JSONSchemaType.STRING),
374-
(["regex search [a-f]"], JSONSchemaType.INTEGER),
375-
(["date"], JSONSchemaType.INTEGER),
376-
(["url"], JSONSchemaType.INTEGER),
377-
],
378-
ids=[
379-
"String rule, integer type",
380-
"InRange rule, string type",
381-
"Regex rule, integer type",
382-
"Date rule, integer type",
383-
"Url rule, integer type",
384-
],
385-
)
386-
def test_get_validation_rule_based_fields_with_exception(
387-
validation_rules: list[str],
388-
explicit_type: JSONSchemaType,
389-
) -> None:
390-
"""
391-
Test for _get_validation_rule_based_fields
392-
Tests that output is expected based on the input validation rules, and explicit type
393-
"""
394-
with pytest.raises(ValueError):
395-
_get_validation_rule_based_fields(validation_rules, explicit_type, "name")
396-
397-
398368
class TestGraphTraversalState:
399369
"""Tests for GraphTraversalState class"""
400370

0 commit comments

Comments
 (0)