diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-07-17 17:34:13 +0100 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <olivier@librepush.net> | 2019-07-18 14:45:55 +0100 |
commit | c9e8f2c75503a6a6e2306f6e941223a5c70f2327 (patch) | |
tree | 2901bc906060bd7ac75f7c681831f9abee8aeff5 /tests/unittest.py | |
parent | Fix redaction authentication (#5700) (diff) | |
download | synapse-c9e8f2c75503a6a6e2306f6e941223a5c70f2327.tar.xz |
More refactoring in `get_events_as_list` (#5707)
We can now use `_get_events_from_cache_or_db` rather than going right back to the database, which means that (a) we can benefit from caching, and (b) it opens the way forward to more extensive checks on the original event. We now always require the original event to exist before we will serve up a redaction.
Diffstat (limited to 'tests/unittest.py')
-rw-r--r-- | tests/unittest.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unittest.py b/tests/unittest.py index cabe787cb4..f5fae21317 100644 --- a/tests/unittest.py +++ b/tests/unittest.py @@ -447,6 +447,7 @@ class HomeserverTestCase(TestCase): # Create the user request, channel = self.make_request("GET", "/_matrix/client/r0/admin/register") self.render(request) + self.assertEqual(channel.code, 200) nonce = channel.json_body["nonce"] want_mac = hmac.new(key=b"shared", digestmod=hashlib.sha1) |