diff options
| author | 尹姜谊 <[email protected]> | 2024-11-08 14:42:50 +0800 |
|---|---|---|
| committer | 尹姜谊 <[email protected]> | 2024-11-08 14:42:50 +0800 |
| commit | c057aff33d329f918bad57c8de5705f841a9495e (patch) | |
| tree | 15c25b451afde91775fea215c7c2be0f4e6f806c /test/test_plugins.py | |
| parent | ee5a5dba40817632ed32d8d86313bb45def60100 (diff) | |
| parent | c0d48d9b8b55926fcaf38c7a126c67ea01e03dbf (diff) | |
修改:适配24.08版本知识库库表结构变化24.08
Diffstat (limited to 'test/test_plugins.py')
| -rw-r--r-- | test/test_plugins.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/test_plugins.py b/test/test_plugins.py index 4787b97..96ce4e3 100644 --- a/test/test_plugins.py +++ b/test/test_plugins.py @@ -46,13 +46,13 @@ class TestIpvanishvpnServername(unittest.TestCase): print(result.server_list) def test_save_to_knowledgebase(self): - self.ipvanishvpn_detector.save_to_knowledgebase(object_type='domain', - object_list=self.ipvanishvpn_detector.find_server(), - vpn_service_name=self.ipvanishvpn_detector.vpn_service_name, - plugin_id=self.ipvanishvpn_detector.plugin_id, - plugin_name=self.ipvanishvpn_detector.plugin_name, - output_filename=self.ipvanishvpn_detector.output_file_name, - confidence=self.ipvanishvpn_detector.confidence) + self.ipvanishvpn_detector.save_results(object_type='domain', + object_list=self.ipvanishvpn_detector.find_server(), + vpn_service_name=self.ipvanishvpn_detector.vpn_service_name, + plugin_id=self.ipvanishvpn_detector.plugin_id, + plugin_name=self.ipvanishvpn_detector.plugin_name, + output_filename=self.ipvanishvpn_detector.output_file_name, + confidence=self.ipvanishvpn_detector.confidence) class TestIpvanishvpnServerip(unittest.TestCase): |
