1
0

Remove superfluous guest from event_stats tests

This commit is contained in:
Eric Eastwood
2025-04-29 20:22:24 -05:00
parent ddf77b58df
commit 0b37f9f6bc
2 changed files with 2 additions and 14 deletions

View File

@@ -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)

View File

@@ -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")