summary refs log tree commit diff
path: root/tests/storage/test_appservice.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-03-31 13:48:03 +0100
committerKegan Dougal <kegan@matrix.org>2015-03-31 13:48:03 +0100
commitcf1fa59f4b72dbf5c9d735eaf051f1456721d91f (patch)
treed76997dacc5d16ddd8ffe64fae3c849b64e13988 /tests/storage/test_appservice.py
parentPyflakes (diff)
downloadsynapse-cf1fa59f4b72dbf5c9d735eaf051f1456721d91f.tar.xz
Use a sender localpart instead of a user ID.
Form the user ID at runtime instead, This gives less room for error in AS
config files since they cannot specify the domain of another HS.
Diffstat (limited to 'tests/storage/test_appservice.py')
-rw-r--r--tests/storage/test_appservice.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_appservice.py b/tests/storage/test_appservice.py
index 58551e40b9..675959c56c 100644
--- a/tests/storage/test_appservice.py
+++ b/tests/storage/test_appservice.py
@@ -60,7 +60,7 @@ class ApplicationServiceStoreTestCase(unittest.TestCase):
 
     def _add_appservice(self, as_token, url, hs_token, sender):
         as_yaml = dict(url=url, as_token=as_token, hs_token=hs_token,
-                       sender=sender, namespaces={})
+                       sender_localpart=sender, namespaces={})
         # use the token as the filename
         with open(as_token, 'w') as outfile:
             outfile.write(yaml.dump(as_yaml))
@@ -138,7 +138,7 @@ class ApplicationServiceTransactionStoreTestCase(unittest.TestCase):
 
     def _add_service(self, url, as_token):
         as_yaml = dict(url=url, as_token=as_token, hs_token="something",
-                       sender="a_sender", namespaces={})
+                       sender_localpart="a_sender", namespaces={})
         # use the token as the filename
         with open(as_token, 'w') as outfile:
             outfile.write(yaml.dump(as_yaml))