Add unknown user ID check. Use store.get_aliases_for_room(room_id) when searching for services by alias.

This commit is contained in:
Kegan Dougal 2015-02-05 11:25:32 +00:00
parent 27091f146a
commit f0c730252f
2 changed files with 20 additions and 5 deletions

View file

@ -46,6 +46,7 @@ class AppServiceHandlerTestCase(unittest.TestCase):
]
self.mock_store.get_app_services = Mock(return_value=services)
self.mock_store.get_user_by_id = Mock(return_value=[])
event = Mock(
sender="@someone:anywhere",