diff --git a/sql/tests.py b/sql/tests.py index b9fbbca0d8..10b15839fc 100644 --- a/sql/tests.py +++ b/sql/tests.py @@ -1736,16 +1736,23 @@ def test_sqladvisor(self, _subprocess): # test db_name r = self.client.post( path="/slowquery/optimize_sqladvisor/", - data={"sql_content": "select 1;", "instance_name": "test_instance", "db_name": "--help"}, + data={ + "sql_content": "select 1;", + "instance_name": "test_instance", + "db_name": "--help", + }, ) self.assertEqual(json.loads(r.content)["status"], 1) r = self.client.post( path="/slowquery/optimize_sqladvisor/", - data={"sql_content": "select 1;", "instance_name": "test_instance", "db_name": ";drop table"}, + data={ + "sql_content": "select 1;", + "instance_name": "test_instance", + "db_name": ";drop table", + }, ) self.assertEqual(json.loads(r.content)["status"], 1) - @patch("sql.plugins.plugin.subprocess") def test_soar(self, _subprocess): """