Remove superfluous guest from event_stats tests
This commit is contained in:
@@ -101,8 +101,8 @@ class PhoneHomeStatsTestCase(unittest.HomeserverTestCase):
|
||||
Perform some actions on the homeserver that would bump the phone home
|
||||
stats.
|
||||
|
||||
This creates a few users, a room, and sends some messages. Expected number of
|
||||
events:
|
||||
This creates a few users (including a guest), a room, and sends some messages.
|
||||
Expected number of events:
|
||||
- 10 unencrypted messages
|
||||
- 5 encrypted messages
|
||||
- 24 total events (including room state, etc)
|
||||
|
||||
@@ -65,18 +65,6 @@ class EventStatsTestCase(unittest.HomeserverTestCase):
|
||||
username="test_user_2",
|
||||
password="test",
|
||||
)
|
||||
# Note: `self.register_user` does not support guest registration, and updating the
|
||||
# Admin API it calls to add a new parameter would cause the `mac` parameter to fail
|
||||
# in a backwards-incompatible manner. Hence, we make a manual request here.
|
||||
_guest_user_mxid = self.make_request(
|
||||
method="POST",
|
||||
path="/_matrix/client/v3/register?kind=guest",
|
||||
content={
|
||||
"username": "guest_user",
|
||||
"password": "test",
|
||||
},
|
||||
shorthand=False,
|
||||
)
|
||||
|
||||
# Log in to each user
|
||||
user_1_token = self.login(username=user_1_mxid, password="test")
|
||||
|
||||
Reference in New Issue
Block a user