summary refs log tree commit diff
path: root/tests/appservice/test_appservice.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-05-22 11:01:28 +0100
committerMark Haines <mark.haines@matrix.org>2015-05-22 11:01:28 +0100
commitf43544eecc362943f9d64a004d40984739a68d98 (patch)
treec4c362d455502b7abb038751e6e2878b1973dbbf /tests/appservice/test_appservice.py
parentMerge branch 'master' of github.com:matrix-org/synapse into develop (diff)
downloadsynapse-f43544eecc362943f9d64a004d40984739a68d98.tar.xz
Make the appservice use 'users_in_room' rather than get_room_members since it is cached
Diffstat (limited to '')
-rw-r--r--tests/appservice/test_appservice.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/tests/appservice/test_appservice.py b/tests/appservice/test_appservice.py
index 62149d6902..8ce8dc0a87 100644
--- a/tests/appservice/test_appservice.py
+++ b/tests/appservice/test_appservice.py
@@ -217,18 +217,9 @@ class ApplicationServiceTestCase(unittest.TestCase):
             _regex("@irc_.*")
         )
         join_list = [
-            Mock(
-                type="m.room.member", room_id="!foo:bar", sender="@alice:here",
-                state_key="@alice:here"
-            ),
-            Mock(
-                type="m.room.member", room_id="!foo:bar", sender="@irc_fo:here",
-                state_key="@irc_fo:here"  # AS user
-            ),
-            Mock(
-                type="m.room.member", room_id="!foo:bar", sender="@bob:here",
-                state_key="@bob:here"
-            )
+            "@alice:here",
+            "@irc_fo:here",  # AS user
+            "@bob:here",
         ]
 
         self.event.sender = "@xmpp_foobar:matrix.org"