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

Method test_run_query_plugin

test/test_query_plugin.py:9–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7
8class TestQueryPlugin(unittest.TestCase):
9 def test_run_query_plugin(self):
10 logger = utils.get_logger()
11 logger.setLevel(logging.DEBUG)
12
13 # pycharm 下运行
14 if "/pycharm/" in sys.argv[0]:
15 results = run_query_plugin("tophant.com", ["fofa"])
16 else:
17 print("sources :{}".format(" ".join(sys.argv[1:])))
18 results = run_query_plugin("tophant.com", sys.argv[1:])
19
20 print("results:")
21 for item in results:
22 print(item["domain"], item["source"])
23 self.assertTrue(len(results) >= 1)
24
25
26if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

run_query_pluginFunction · 0.90

Tested by

no test coverage detected