diff options
author | Erik Johnston <erik@matrix.org> | 2015-05-05 15:13:25 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-05-05 15:13:25 +0100 |
commit | 43c2e8deae5f7e2b339ab5c131391231886cad09 (patch) | |
tree | ff147eb249c9a77d151fdf552af8850a116ff4af /tests | |
parent | Don't call 'encode_parameter' no-op (diff) | |
download | synapse-43c2e8deae5f7e2b339ab5c131391231886cad09.tar.xz |
Add support for using executemany
Diffstat (limited to 'tests')
-rw-r--r-- | tests/storage/test_base.py | 4 |
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 |