mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-09 23:23:32 -05:00
Convert additional database methods to async (select list, search, insert_many, delete_*) (#8168)
This commit is contained in:
parent
4a739c73b4
commit
30426c7063
8 changed files with 67 additions and 84 deletions
|
|
@ -197,8 +197,10 @@ class SQLBaseStoreTestCase(unittest.TestCase):
|
|||
def test_delete_one(self):
|
||||
self.mock_txn.rowcount = 1
|
||||
|
||||
yield self.datastore.db_pool.simple_delete_one(
|
||||
table="tablename", keyvalues={"keycol": "Go away"}
|
||||
yield defer.ensureDeferred(
|
||||
self.datastore.db_pool.simple_delete_one(
|
||||
table="tablename", keyvalues={"keycol": "Go away"}
|
||||
)
|
||||
)
|
||||
|
||||
self.mock_txn.execute.assert_called_with(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue