From 93858e302a4827f6d32a60b8b19b8210479b9b04 Mon Sep 17 00:00:00 2001 From: chrisr3d Date: Sun, 27 Oct 2019 21:16:31 +0100 Subject: [PATCH] fix: Removed unused self param turning the associated functions into static methods --- tests/test_expansions.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_expansions.py b/tests/test_expansions.py index a3a2c8e4..4f9c2caa 100644 --- a/tests/test_expansions.py +++ b/tests/test_expansions.py @@ -21,21 +21,24 @@ class TestExpansions(unittest.TestCase): def misp_modules_post(self, query): return requests.post(urljoin(self.url, "query"), json=query) - def get_data(self, response): + @staticmethod + def get_data(response): data = response.json() if not isinstance(data, dict): print(json.dumps(data, indent=2)) return data return data['results'][0]['data'] - def get_errors(self, response): + @staticmethod + def get_errors(response): data = response.json() if not isinstance(data, dict): print(json.dumps(data, indent=2)) return data return data['error'] - def get_values(self, response): + @staticmethod + def get_values(response): data = response.json() if not isinstance(data, dict): print(json.dumps(data, indent=2))