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

Function test_complex_set

tests/test_base.py:80–91  ·  view source on GitHub ↗

Test setting fields. Args: complex_child: A child class.

(complex_child)

Source from the content-addressed store, hash-verified

78
79
80def test_complex_set(complex_child):
81 """Test setting fields.
82
83 Args:
84 complex_child: A child class.
85 """
86 complex_child.set(num=1, key="a", name="Jane Doe", age=28, active=False)
87 assert complex_child.num == 1
88 assert complex_child.key == "a"
89 assert complex_child.name == "Jane Doe"
90 assert complex_child.age == 28
91 assert complex_child.active is False
92
93
94def test_complex_json(complex_child):

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected