summary refs log tree commit diff
path: root/tests/unittest.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-12-04 11:30:32 +0100
committerGitHub <noreply@github.com>2018-12-04 11:30:32 +0100
commit48972ce9d10c67b49a0f7b4f45aa91551de0c830 (patch)
tree787f641e50f195a19b131278e8d9d8ec5984c8c1 /tests/unittest.py
parentMerge pull request #4250 from matrix-org/hawkowl/pusher-remove-py3 (diff)
downloadsynapse-48972ce9d10c67b49a0f7b4f45aa91551de0c830.tar.xz
Patch defer.inlineCallbacks to check logcontexts in tests (#4205)
Diffstat (limited to 'tests/unittest.py')
-rw-r--r--tests/unittest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unittest.py b/tests/unittest.py
index a191cccc29..092c930396 100644
--- a/tests/unittest.py
+++ b/tests/unittest.py
@@ -34,7 +34,9 @@ from synapse.types import UserID, create_requester
 from synapse.util.logcontext import LoggingContext, LoggingContextFilter
 
 from tests.server import get_clock, make_request, render, setup_test_homeserver
-from tests.utils import default_config
+from tests.utils import default_config, setupdb
+
+setupdb()
 
 # Set up putting Synapse's logs into Trial's.
 rootLogger = logging.getLogger()