(agent)
| 58 | |
| 59 | |
| 60 | def test_find_objects(agent): |
| 61 | stub_data_svc = StubDataService() |
| 62 | stub_data_svc.ram['agents'] = [ |
| 63 | agent(paw='agent0', sleep_min=2, sleep_max=5, watchdog=0), |
| 64 | agent(paw='agent1', sleep_min=2, sleep_max=5, watchdog=0) |
| 65 | ] |
| 66 | manager = BaseApiManager(data_svc=stub_data_svc, file_svc=None) |
| 67 | |
| 68 | agents = list(manager.find_objects('agents')) |
| 69 | |
| 70 | assert len(agents) == len(stub_data_svc.ram['agents']) |
| 71 | |
| 72 | |
| 73 | def test_find_objects_with_search(agent): |
nothing calls this directly
no test coverage detected