MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / assert_json_equal

Function assert_json_equal

tests/conftest.py:260–262  ·  view source on GitHub ↗

Assert two JSON-serializable objects are equal.

(actual: Any, expected: Any)

Source from the content-addressed store, hash-verified

258
259
260def assert_json_equal(actual: Any, expected: Any):
261 """Assert two JSON-serializable objects are equal."""
262 assert json.dumps(actual, sort_keys=True) == json.dumps(expected, sort_keys=True)
263
264
265# =============================================================================

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected