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

Function test_complex_json

tests/test_base.py:94–103  ·  view source on GitHub ↗

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

(complex_child)

Source from the content-addressed store, hash-verified

92
93
94def test_complex_json(complex_child):
95 """Test converting to json.
96
97 Args:
98 complex_child: A child class.
99 """
100 assert (
101 complex_child.json().replace(" ", "")
102 == '{"num":3.14,"key":"pi","name":"JohnDoe","age":30,"active":true}'
103 )

Callers

nothing calls this directly

Calls 1

jsonMethod · 0.80

Tested by

no test coverage detected