diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-05-22 11:56:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-22 11:56:09 +0100 |
commit | 8aeb529262ca686b149576f514958a62fb961af1 (patch) | |
tree | 794a25f36f274fa857a7bcd5b7c73a2b09723d09 /tests/storage/test_registration.py | |
parent | Merge pull request #3258 from matrix-org/erikj/fixup_logcontext_rusage (diff) | |
parent | Stub out ServerNoticesSender on the workers (diff) | |
download | synapse-8aeb529262ca686b149576f514958a62fb961af1.tar.xz |
Merge pull request #3236 from matrix-org/rav/consent_notice
Send users a server notice about consent
Diffstat (limited to 'tests/storage/test_registration.py')
-rw-r--r-- | tests/storage/test_registration.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/storage/test_registration.py b/tests/storage/test_registration.py index 7c7b164ee6..cc637dda1c 100644 --- a/tests/storage/test_registration.py +++ b/tests/storage/test_registration.py @@ -42,9 +42,14 @@ class RegistrationStoreTestCase(unittest.TestCase): yield self.store.register(self.user_id, self.tokens[0], self.pwhash) self.assertEquals( - # TODO(paul): Surely this field should be 'user_id', not 'name' - # Additionally surely it shouldn't come in a 1-element list - {"name": self.user_id, "password_hash": self.pwhash, "is_guest": 0}, + { + # TODO(paul): Surely this field should be 'user_id', not 'name' + "name": self.user_id, + "password_hash": self.pwhash, + "is_guest": 0, + "consent_version": None, + "consent_server_notice_sent": None, + }, (yield self.store.get_user_by_id(self.user_id)) ) |