summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-09-23 10:30:03 +0100
committerMark Haines <mark.haines@matrix.org>2015-09-23 10:30:03 +0100
commit1ee3d26432d87ff312350f21da982f646b5af49a (patch)
treede2c541f9d12188d13422d580cce4be8886826fe /tests
parentsynapse/state.py:_get_state_key_from_event was unused (diff)
downloadsynapse-1ee3d26432d87ff312350f21da982f646b5af49a.tar.xz
synapse/storage/_base.py:_simple_selectupdate_one was unused
Diffstat (limited to 'tests')
-rw-r--r--tests/storage/test_base.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/storage/test_base.py b/tests/storage/test_base.py
index 8573f18b55..1ddca1da4c 100644
--- a/tests/storage/test_base.py
+++ b/tests/storage/test_base.py
@@ -186,26 +186,6 @@ class SQLBaseStoreTestCase(unittest.TestCase):
         )
 
     @defer.inlineCallbacks
-    def test_update_one_with_return(self):
-        self.mock_txn.rowcount = 1
-        self.mock_txn.fetchone.return_value = ("Old Value",)
-
-        ret = yield self.datastore._simple_selectupdate_one(
-                table="tablename",
-                keyvalues={"keycol": "TheKey"},
-                updatevalues={"columname": "New Value"},
-                retcols=["columname"]
-        )
-
-        self.assertEquals({"columname": "Old Value"}, ret)
-        self.mock_txn.execute.assert_has_calls([
-                call('SELECT columname FROM tablename WHERE keycol = ?',
-                    ['TheKey']),
-                call("UPDATE tablename SET columname = ? WHERE keycol = ?",
-                    ["New Value", "TheKey"])
-        ])
-
-    @defer.inlineCallbacks
     def test_delete_one(self):
         self.mock_txn.rowcount = 1