Skip to content

Commit 414c8f0

Browse files
committed
test_rail: Check format deprecation resolves properly
1 parent a19874f commit 414c8f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit_tests/test_rail.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,6 @@ def test_format_deprecated():
169169
</rail>
170170
"""
171171
with pytest.warns(DeprecationWarning):
172-
Rail.from_string(rail_spec)
172+
rail = Rail.from_string(rail_spec)
173+
validator = rail.output_schema.root_datatype.children.string_name.validators[0]
174+
assert validator.rail_alias == "two-words"

0 commit comments

Comments
 (0)