diff options
author | pik <alexander.maznev@gmail.com> | 2017-03-23 11:42:41 -0300 |
---|---|---|
committer | pik <alexander.maznev@gmail.com> | 2017-03-23 11:42:41 -0300 |
commit | 566641a0b5f04e444383d5e3a5493b22e551ff03 (patch) | |
tree | 61691bbc1bcc79c9a824dcdaf626cbd15adae97e /tests/rest/client | |
parent | Add valid filter tests, flake8, fix typo (diff) | |
download | synapse-566641a0b5f04e444383d5e3a5493b22e551ff03.tar.xz |
use jsonschema.FormatChecker for RoomID and UserID strings
* use a valid filter in rest/client/v2_alpha test Signed-off-by: pik <alexander.maznev@gmail.com>
Diffstat (limited to 'tests/rest/client')
-rw-r--r-- | tests/rest/client/v2_alpha/test_filter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rest/client/v2_alpha/test_filter.py b/tests/rest/client/v2_alpha/test_filter.py index 3d27d03cbf..76b833e119 100644 --- a/tests/rest/client/v2_alpha/test_filter.py +++ b/tests/rest/client/v2_alpha/test_filter.py @@ -33,8 +33,8 @@ PATH_PREFIX = "/_matrix/client/v2_alpha" class FilterTestCase(unittest.TestCase): USER_ID = "@apple:test" - EXAMPLE_FILTER = {"type": ["m.*"]} - EXAMPLE_FILTER_JSON = '{"type": ["m.*"]}' + EXAMPLE_FILTER = {"room": {"timeline": {"types": ["m.room.message"]}}} + EXAMPLE_FILTER_JSON = '{"room": {"timeline": {"types": ["m.room.message"]}}}' TO_REGISTER = [filter] @defer.inlineCallbacks |