MCPcopy Create free account
hub / github.com/C3ting/ARL / test_exec_task

Method test_exec_task

test/task.py:60–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58
59class TestExecTask(unittest.TestCase):
60 def test_exec_task(self):
61 submit_task(task_data)
62 query = {"task_id": task_data["task_id"]}
63 self.assertTrue(len(list(conn("site").find(query))) >= 1)
64 self.assertTrue(len(list(conn("domain").find(query))) >= 1)
65
66 if task_data["options"]["port_scan"]:
67 self.assertTrue(len(list(conn("ip").find(query))) >= 1)
68
69
70if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

submit_taskFunction · 0.70

Tested by

no test coverage detected