- Adds support for
None
type to comparison method
- Added
long_description
tosetup.py
for PyPI package page
- Improves clarity of error messages for large component comparisons
raise
AssertionError
with large string difference between JSON objects if the component did not match the snapshot, which led to difficult to read error message like:raiseAssertionError: {'pro[136 chars]en': 'another one'}, 'namespace': 'dash_html_c[77 chars]Div'} != {'pro[136 chars]en': [1, 2, 3]}, 'namespace': 'dash_html_compo[73 chars]Div'}
AssertionError
with large string difference between JSON objects if the component does not match the snapshot, and add new details section about the first local mismatch between the component and snapshot:orDETAILS: <class 'list'> != <class 'str'> CONTEXT 1: {"children": [1, 2, 3]} CONTEXT 2: {"children": "another one"}
DETAILS: P != Span CONTEXT 1: {"type": "P", "props": {"children": "another one"}, "namespace": "dash_html_components"} CONTEXT 2: {"type": "Span", "props": {"children": "another one"}, "namespace": "dash_html_components"}
- This package now checks for an environment variable (UPDATE_DASH_SNAPSHOTS) and will automatically overwrite snapshots if it is set to TRUE
- MIT License
- Initial publication