summary refs log tree commit diff
path: root/tests/storage
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2015-05-05 18:30:35 +0100
committerMark Haines <mjark@negativecurvature.net>2015-05-05 18:30:35 +0100
commitecb26beda5582df286d5d21a91013b9cdb730e07 (patch)
treeadffd54138cb4d537edb45f2d715e26a391edb76 /tests/storage
parentUse buffer(...) when inserting into bytea column (diff)
parentAnd use buffer(...) there as well (diff)
downloadsynapse-ecb26beda5582df286d5d21a91013b9cdb730e07.tar.xz
Merge pull request #137 from matrix-org/erikj/executemany
executemany support
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