Skip to content

Commit

Permalink
Make sure it is tested
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Oct 16, 2024
1 parent afd25b0 commit 092bf3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/core/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@ def test_conform_primitives():

assert _conform_primitive_property(None, {"type": "boolean"}) is None
assert _conform_primitive_property(0, {"type": "boolean"}) is False
assert _conform_primitive_property(0, {"type": ["boolean", "integer"]}) == 0
assert _conform_primitive_property(1, {"type": "boolean"}) is True
assert _conform_primitive_property(1, {"type": ["boolean", "null"]}) is True
assert _conform_primitive_property(1, {"type": ["boolean"]}) is True


@pytest.mark.parametrize(
Expand Down

0 comments on commit 092bf3e

Please sign in to comment.