diff options
author | Shay <hillerys@element.io> | 2023-04-26 16:03:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 16:03:26 -0700 |
commit | 301b4156d5574521e4fa3df8fed2f8a1c8617745 (patch) | |
tree | 2f9f837444c8802451f51b1a165f6bcdf181fcfd /tests/rest/client | |
parent | Add a module API to send an HTTP push notification (#15387) (diff) | |
download | synapse-301b4156d5574521e4fa3df8fed2f8a1c8617745.tar.xz |
Add column `full_user_id` to tables `profiles` and `user_filters`. (#15458)
Diffstat (limited to 'tests/rest/client')
-rw-r--r-- | tests/rest/client/test_filter.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/rest/client/test_filter.py b/tests/rest/client/test_filter.py index 91678abf13..9faa9de050 100644 --- a/tests/rest/client/test_filter.py +++ b/tests/rest/client/test_filter.py @@ -17,6 +17,7 @@ from twisted.test.proto_helpers import MemoryReactor from synapse.api.errors import Codes from synapse.rest.client import filter from synapse.server import HomeServer +from synapse.types import UserID from synapse.util import Clock from tests import unittest @@ -76,7 +77,8 @@ class FilterTestCase(unittest.HomeserverTestCase): def test_get_filter(self) -> None: filter_id = self.get_success( self.filtering.add_user_filter( - user_localpart="apple", user_filter=self.EXAMPLE_FILTER + user_id=UserID.from_string("@apple:test"), + user_filter=self.EXAMPLE_FILTER, ) ) self.reactor.advance(1) |