Run tests under PostgreSQL (#3423)

This commit is contained in:
Amber Brown 2018-08-13 16:47:46 +10:00 committed by GitHub
parent a001038b92
commit 99dd975dae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 227 additions and 59 deletions

View file

@ -58,12 +58,10 @@ class KeyringTestCase(unittest.TestCase):
self.mock_perspective_server = MockPerspectiveServer()
self.http_client = Mock()
self.hs = yield utils.setup_test_homeserver(
handlers=None, http_client=self.http_client
self.addCleanup, handlers=None, http_client=self.http_client
)
keys = self.mock_perspective_server.get_verify_keys()
self.hs.config.perspectives = {
self.mock_perspective_server.server_name: keys
}
self.hs.config.perspectives = {self.mock_perspective_server.server_name: keys}
def check_context(self, _, expected):
self.assertEquals(