mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 07:15:04 -04:00
Add missing type hints to tests.replication. (#14987)
This commit is contained in:
parent
b275763c65
commit
156cd88eef
21 changed files with 193 additions and 149 deletions
|
@ -21,12 +21,12 @@ from tests.unittest import TestCase
|
|||
|
||||
|
||||
class ParseCommandTestCase(TestCase):
|
||||
def test_parse_one_word_command(self):
|
||||
def test_parse_one_word_command(self) -> None:
|
||||
line = "REPLICATE"
|
||||
cmd = parse_command_from_line(line)
|
||||
self.assertIsInstance(cmd, ReplicateCommand)
|
||||
|
||||
def test_parse_rdata(self):
|
||||
def test_parse_rdata(self) -> None:
|
||||
line = 'RDATA events master 6287863 ["ev", ["$eventid", "!roomid", "type", null, null, null]]'
|
||||
cmd = parse_command_from_line(line)
|
||||
assert isinstance(cmd, RdataCommand)
|
||||
|
@ -34,7 +34,7 @@ class ParseCommandTestCase(TestCase):
|
|||
self.assertEqual(cmd.instance_name, "master")
|
||||
self.assertEqual(cmd.token, 6287863)
|
||||
|
||||
def test_parse_rdata_batch(self):
|
||||
def test_parse_rdata_batch(self) -> None:
|
||||
line = 'RDATA presence master batch ["@foo:example.com", "online"]'
|
||||
cmd = parse_command_from_line(line)
|
||||
assert isinstance(cmd, RdataCommand)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue