mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-10-02 01:38:25 -04:00
Incorporate review
This commit is contained in:
parent
5598445655
commit
988d8d6507
7 changed files with 21 additions and 15 deletions
|
@ -329,7 +329,7 @@ class FilteringTestCase(unittest.TestCase):
|
|||
sender="@foo:bar",
|
||||
type="m.room.message",
|
||||
room_id="!secretbase:unknown",
|
||||
content={EventContentFields.Labels: ["#fun"]},
|
||||
content={EventContentFields.LABELS: ["#fun"]},
|
||||
)
|
||||
|
||||
self.assertTrue(Filter(definition).check(event))
|
||||
|
@ -338,7 +338,7 @@ class FilteringTestCase(unittest.TestCase):
|
|||
sender="@foo:bar",
|
||||
type="m.room.message",
|
||||
room_id="!secretbase:unknown",
|
||||
content={EventContentFields.Labels: ["#notfun"]},
|
||||
content={EventContentFields.LABELS: ["#notfun"]},
|
||||
)
|
||||
|
||||
self.assertFalse(Filter(definition).check(event))
|
||||
|
@ -349,7 +349,7 @@ class FilteringTestCase(unittest.TestCase):
|
|||
sender="@foo:bar",
|
||||
type="m.room.message",
|
||||
room_id="!secretbase:unknown",
|
||||
content={EventContentFields.Labels: ["#fun"]},
|
||||
content={EventContentFields.LABELS: ["#fun"]},
|
||||
)
|
||||
|
||||
self.assertFalse(Filter(definition).check(event))
|
||||
|
@ -358,7 +358,7 @@ class FilteringTestCase(unittest.TestCase):
|
|||
sender="@foo:bar",
|
||||
type="m.room.message",
|
||||
room_id="!secretbase:unknown",
|
||||
content={EventContentFields.Labels: ["#notfun"]},
|
||||
content={EventContentFields.LABELS: ["#notfun"]},
|
||||
)
|
||||
|
||||
self.assertTrue(Filter(definition).check(event))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue