diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-09-28 17:58:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-28 17:58:33 +0100 |
commit | 5e3ca12b158b4abefe2e3a54259ab5255dca93d8 (patch) | |
tree | fffcae603f7af4ac05b7d344667a481811bf153f /tests/crypto/test_keyring.py | |
parent | Add `ui_auth_sessions_ips` table to `synapse_port_db` ignore list (#8410) (diff) | |
download | synapse-5e3ca12b158b4abefe2e3a54259ab5255dca93d8.tar.xz |
Create a mechanism for marking tests "logcontext clean" (#8399)
Diffstat (limited to 'tests/crypto/test_keyring.py')
-rw-r--r-- | tests/crypto/test_keyring.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/crypto/test_keyring.py b/tests/crypto/test_keyring.py index 5cf408f21f..8ff1460c0d 100644 --- a/tests/crypto/test_keyring.py +++ b/tests/crypto/test_keyring.py @@ -41,6 +41,7 @@ from synapse.storage.keys import FetchKeyResult from tests import unittest from tests.test_utils import make_awaitable +from tests.unittest import logcontext_clean class MockPerspectiveServer: @@ -67,6 +68,7 @@ class MockPerspectiveServer: signedjson.sign.sign_json(res, self.server_name, self.key) +@logcontext_clean class KeyringTestCase(unittest.HomeserverTestCase): def check_context(self, val, expected): self.assertEquals(getattr(current_context(), "request", None), expected) @@ -309,6 +311,7 @@ class KeyringTestCase(unittest.HomeserverTestCase): mock_fetcher2.get_keys.assert_called_once() +@logcontext_clean class ServerKeyFetcherTestCase(unittest.HomeserverTestCase): def make_homeserver(self, reactor, clock): self.http_client = Mock() |