MCPcopy Index your code
hub / github.com/apache/caldera / test_dump

Function test_dump

tests/api/v2/managers/test_base_api_manager.py:113–121  ·  view source on GitHub ↗
(data_svc, agent)

Source from the content-addressed store, hash-verified

111
112
113def test_dump(data_svc, agent):
114 test_agent = agent(sleep_min=2, sleep_max=5, watchdog=0)
115 dumped_agent = test_agent.schema.dump(test_agent)
116
117 manager = BaseApiManager(data_svc=data_svc, file_svc=None)
118 manager_dumped_agent = manager.dump_object_with_filters(test_agent)
119
120 for key in manager_dumped_agent:
121 assert manager_dumped_agent[key] == dumped_agent[key]
122
123
124def test_dump_with_exclude(data_svc, agent):

Callers

nothing calls this directly

Calls 3

BaseApiManagerClass · 0.90
agentFunction · 0.85

Tested by

no test coverage detected