summary refs log tree commit diff
path: root/tests/rest/test_presence.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-08-29 17:09:15 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-08-29 17:10:28 +0100
commit20d0db6cfb8efce079376eb6bd2c8cca4f4cab16 (patch)
tree71b1dd34f0cd3624afcc4710b112d3f5cda0b678 /tests/rest/test_presence.py
parentRooms: More subsections, more bullet points, more detail. (diff)
downloadsynapse-20d0db6cfb8efce079376eb6bd2c8cca4f4cab16.tar.xz
Move the *EventSource classes into the handlers they relate to, so it's easier to find the code
Diffstat (limited to '')
-rw-r--r--tests/rest/test_presence.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rest/test_presence.py b/tests/rest/test_presence.py
index 7f7347dcf9..0f5fc21432 100644
--- a/tests/rest/test_presence.py
+++ b/tests/rest/test_presence.py
@@ -229,7 +229,7 @@ class PresenceEventStreamTestCase(unittest.TestCase):
         # HIDEOUS HACKERY
         # TODO(paul): This should be injected in via the HomeServer DI system
         from synapse.streams.events import (
-            PresenceSource, NullSource, EventSources
+            PresenceEventSource, NullSource, EventSources
         )
 
         old_SOURCE_TYPES = EventSources.SOURCE_TYPES
@@ -240,7 +240,7 @@ class PresenceEventStreamTestCase(unittest.TestCase):
         EventSources.SOURCE_TYPES = {
             k: NullSource for k in old_SOURCE_TYPES.keys()
         }
-        EventSources.SOURCE_TYPES["presence"] = PresenceSource
+        EventSources.SOURCE_TYPES["presence"] = PresenceEventSource
 
         hs = HomeServer("test",
             db_pool=None,