From de834809dbf5f054a5f75c35dbee653cac8311f3 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Thu, 3 Jun 2021 21:11:33 +0300 Subject: tests: test_audit: Update test case to check for prepared statements --- tests/unit/db/test_audit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/unit/db') diff --git a/tests/unit/db/test_audit.py b/tests/unit/db/test_audit.py index 22787bb..1449281 100644 --- a/tests/unit/db/test_audit.py +++ b/tests/unit/db/test_audit.py @@ -23,6 +23,6 @@ class TestMetadatAudit(TestCase): editor="Bonface", json_data=json.dumps({"a": "b"}))), 1) cursor.execute.assert_called_once_with( - "INSERT INTO metadata_audit ('dataset_id', " - "'editor', 'json_data') " - 'VALUES (\'35\', \'Bonface\', \'{\\"a\\": \\"b\\"}\')') + "INSERT INTO metadata_audit (dataset_id, " + "editor, json_data) VALUES (%s, %s, %s)", + (35, 'Bonface', '{"a": "b"}')) -- cgit v1.2.3