summary refs log tree commit diff
path: root/tests/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-05 15:13:25 +0100
committerErik Johnston <erik@matrix.org>2015-05-05 15:13:25 +0100
commit43c2e8deae5f7e2b339ab5c131391231886cad09 (patch)
treeff147eb249c9a77d151fdf552af8850a116ff4af /tests/storage
parentDon't call 'encode_parameter' no-op (diff)
downloadsynapse-43c2e8deae5f7e2b339ab5c131391231886cad09.tar.xz
Add support for using executemany
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_base.py b/tests/storage/test_base.py
index a64d2b821e..8c348ecc95 100644
--- a/tests/storage/test_base.py
+++ b/tests/storage/test_base.py
@@ -67,7 +67,7 @@ class SQLBaseStoreTestCase(unittest.TestCase):
 
         self.mock_txn.execute.assert_called_with(
                 "INSERT INTO tablename (columname) VALUES(?)",
-                ["Value"]
+                ("Value",)
         )
 
     @defer.inlineCallbacks
@@ -82,7 +82,7 @@ class SQLBaseStoreTestCase(unittest.TestCase):
 
         self.mock_txn.execute.assert_called_with(
                 "INSERT INTO tablename (colA, colB, colC) VALUES(?, ?, ?)",
-                [1, 2, 3]
+                (1, 2, 3,)
         )
 
     @defer.inlineCallbacks