mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 09:14:55 -04:00
Move event_fields filtering to serialize_event
Also make it an inclusive not exclusive filter, as the spec demands.
This commit is contained in:
parent
e90fcd9edd
commit
f97511a1f3
3 changed files with 119 additions and 59 deletions
|
@ -114,3 +114,24 @@ class PruneEventTestCase(unittest.TestCase):
|
|||
'unsigned': {},
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
class SerializeEventTestCase(unittest.TestCase):
|
||||
|
||||
def test_event_fields_works_with_keys(self):
|
||||
pass
|
||||
|
||||
def test_event_fields_works_with_nested_keys(self):
|
||||
pass
|
||||
|
||||
def test_event_fields_works_with_dot_keys(self):
|
||||
pass
|
||||
|
||||
def test_event_fields_works_with_nested_dot_keys(self):
|
||||
pass
|
||||
|
||||
def test_event_fields_nops_with_unknown_keys(self):
|
||||
pass
|
||||
|
||||
def test_event_fields_nops_with_non_dict_keys(self):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue