mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-27 06:09:24 -05:00
Lint again
This commit is contained in:
parent
7c24d0f443
commit
bf9a11c54d
@ -19,7 +19,7 @@ import logging
|
|||||||
import os.path
|
import os.path
|
||||||
import re
|
import re
|
||||||
from textwrap import indent
|
from textwrap import indent
|
||||||
from typing import List, Dict, Optional
|
from typing import Dict, List, Optional
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
import yaml
|
import yaml
|
||||||
|
@ -121,11 +121,7 @@ class RetentionTestCase(unittest.HomeserverTestCase):
|
|||||||
self.reactor.advance(one_day_ms * 2 / 1000)
|
self.reactor.advance(one_day_ms * 2 / 1000)
|
||||||
|
|
||||||
# Send another event, which shouldn't get filtered out.
|
# Send another event, which shouldn't get filtered out.
|
||||||
resp = self.helper.send(
|
resp = self.helper.send(room_id=room_id, body="2", tok=self.token)
|
||||||
room_id=room_id,
|
|
||||||
body="2",
|
|
||||||
tok=self.token,
|
|
||||||
)
|
|
||||||
|
|
||||||
valid_event_id = resp.get("event_id")
|
valid_event_id = resp.get("event_id")
|
||||||
|
|
||||||
@ -252,11 +248,7 @@ class RetentionNoDefaultPolicyTestCase(unittest.HomeserverTestCase):
|
|||||||
def _test_retention(self, room_id, expected_code_for_first_event=200):
|
def _test_retention(self, room_id, expected_code_for_first_event=200):
|
||||||
# Send a first event to the room. This is the event we'll want to be purged at the
|
# Send a first event to the room. This is the event we'll want to be purged at the
|
||||||
# end of the test.
|
# end of the test.
|
||||||
resp = self.helper.send(
|
resp = self.helper.send(room_id=room_id, body="1", tok=self.token)
|
||||||
room_id=room_id,
|
|
||||||
body="1",
|
|
||||||
tok=self.token,
|
|
||||||
)
|
|
||||||
|
|
||||||
first_event_id = resp.get("event_id")
|
first_event_id = resp.get("event_id")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user