mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 17:46:08 +03:00
Rename MockedDatastoreTestCase to MockedDatastorePresenceTestCase since it is still presence-specific
This commit is contained in:
parent
cbb10879cb
commit
3a243c53f4
1 changed files with 3 additions and 3 deletions
|
@ -188,7 +188,7 @@ class PresenceTestCase(unittest.TestCase):
|
||||||
self.u_cabbage = hs.parse_userid("@cabbage:elsewhere")
|
self.u_cabbage = hs.parse_userid("@cabbage:elsewhere")
|
||||||
|
|
||||||
|
|
||||||
class MockedDatastoreTestCase(PresenceTestCase):
|
class MockedDatastorePresenceTestCase(PresenceTestCase):
|
||||||
def make_datastore_mock(self):
|
def make_datastore_mock(self):
|
||||||
datastore = Mock(spec=[
|
datastore = Mock(spec=[
|
||||||
# Bits that Federation needs
|
# Bits that Federation needs
|
||||||
|
@ -605,7 +605,7 @@ class PresenceInvitesTestCase(PresenceTestCase):
|
||||||
], presence)
|
], presence)
|
||||||
|
|
||||||
|
|
||||||
class PresencePushTestCase(MockedDatastoreTestCase):
|
class PresencePushTestCase(MockedDatastorePresenceTestCase):
|
||||||
""" Tests steady-state presence status updates.
|
""" Tests steady-state presence status updates.
|
||||||
|
|
||||||
They assert that presence state update messages are pushed around the place
|
They assert that presence state update messages are pushed around the place
|
||||||
|
@ -990,7 +990,7 @@ class PresencePushTestCase(MockedDatastoreTestCase):
|
||||||
put_json.await_calls()
|
put_json.await_calls()
|
||||||
|
|
||||||
|
|
||||||
class PresencePollingTestCase(MockedDatastoreTestCase):
|
class PresencePollingTestCase(MockedDatastorePresenceTestCase):
|
||||||
""" Tests presence status polling. """
|
""" Tests presence status polling. """
|
||||||
|
|
||||||
# For this test, we have three local users; apple is watching and is
|
# For this test, we have three local users; apple is watching and is
|
||||||
|
|
Loading…
Reference in a new issue