summary refs log tree commit diff
path: root/tests/storage/test_appservice.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-05-14 13:37:44 +0100
committerErik Johnston <erik@matrix.org>2019-05-14 13:37:44 +0100
commit4fb44fb5b9f0043ab7bfbc0aa7251c92680cc639 (patch)
treef0c410c0e3da25af7af1cbef5c5ca5eaff493262 /tests/storage/test_appservice.py
parentMigrate all tests to use the dict-based config format instead of hanging item... (diff)
downloadsynapse-4fb44fb5b9f0043ab7bfbc0aa7251c92680cc639.tar.xz
Expose DataStore._get_events as get_events_as_list
This is in preparation for reaction work which requires it.
Diffstat (limited to 'tests/storage/test_appservice.py')
-rw-r--r--tests/storage/test_appservice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/storage/test_appservice.py b/tests/storage/test_appservice.py
index 3f0083831b..25a6c89ef5 100644
--- a/tests/storage/test_appservice.py
+++ b/tests/storage/test_appservice.py
@@ -340,7 +340,7 @@ class ApplicationServiceTransactionStoreTestCase(unittest.TestCase):
         other_events = [Mock(event_id="e5"), Mock(event_id="e6")]
 
         # we aren't testing store._base stuff here, so mock this out
-        self.store._get_events = Mock(return_value=events)
+        self.store.get_events_as_list = Mock(return_value=events)
 
         yield self._insert_txn(self.as_list[1]["id"], 9, other_events)
         yield self._insert_txn(service.id, 10, events)