MCPcopy Create free account
hub / github.com/dot-agent/nextpy / test_json

Function test_json

tests/test_base.py:44–50  ·  view source on GitHub ↗

Test converting to json. Args: child: A child class.

(child)

Source from the content-addressed store, hash-verified

42
43
44def test_json(child):
45 """Test converting to json.
46
47 Args:
48 child: A child class.
49 """
50 assert child.json().replace(" ", "") == '{"num":3.14,"key":"pi"}'
51
52
53@pytest.fixture

Callers

nothing calls this directly

Calls 1

jsonMethod · 0.80

Tested by

no test coverage detected