aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorBonfaceKilz2021-06-03 21:11:33 +0300
committerBonfaceKilz2021-06-03 21:58:31 +0300
commit6d366086c0361c3f89d066cec78c5a69de9be155 (patch)
tree14012ee8427c6b9223fb169e98cfb185c955e5b7 /tests/unit
parent7e617e2b3c637289584d9450e23fd793578e5f7b (diff)
downloadgenenetwork3-6d366086c0361c3f89d066cec78c5a69de9be155.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"}'))