You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
____________ test_canonicalises_to_equivalent_fixpoint[any-schema] _____________
[gw0] linux -- Python 3.7.10 /home/runner/work/hypothesis-jsonschema/hypothesis-jsonschema/.tox/test/bin/python
tests/test_canonicalise.py:27: in test_canonicalises_to_equivalent_fixpoint
@given(data=st.data())
tests/test_canonicalise.py:33: in test_canonicalises_to_equivalent_fixpoint
assert cc == canonicalish(cc)
E AssertionError: assert {'not': {'min...g', 'object']} == {'type': ['nu...g', 'object']}
E Omitting 1 identical items, use -vv to show
E Left contains 1 more item:
E {'not': {'minItems': 1, 'type': 'array'}}
E Use -v to get the full diff
---------------------------------- Hypothesis ----------------------------------
Falsifying example: test_canonicalises_to_equivalent_fixpoint(
data=data(...), schema_strategy=_json_schemata(),
)
Draw 1 (schema): {'not': {'anyOf': [{'type': 'array', 'items': {}, 'contains': {}}, {'type': 'array', 'items': True}]}}
The text was updated successfully, but these errors were encountered:
Importantly the canonicalisation is correct if incomplete in both cases, so given the difficulty of fixing it I'm not treating the possible gain in efficiency as a particularly urgent issue.
The text was updated successfully, but these errors were encountered: