aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorBonfaceKilz2021-06-03 21:11:33 +0300
committerzsloan2021-06-18 22:08:04 +0000
commitde834809dbf5f054a5f75c35dbee653cac8311f3 (patch)
tree54f6f4849721f0ba1825f5ad0df94d50f995ddd3 /tests/unit
parent511cde13c8f18c2e2be3a29eee3fa7366fce81a3 (diff)
downloadgenenetwork3-de834809dbf5f054a5f75c35dbee653cac8311f3.tar.gz
tests: test_audit: Update test case to check for prepared statements
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/db/test_audit.py6
1 files changed, 3 insertions, 3 deletions
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"}'))