Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_tornado: Run the test harness with Tornado's URL configuration.

Aman Agrawale3a5bfe8e3ca
diff --git a/zerver/tests/test_tornado.py b/zerver/tests/test_tornado.py
index acc289dd422..227c7067ff6 100644
--- a/zerver/tests/test_tornado.py
+++ b/zerver/tests/test_tornado.py
@@ -43,7 +43,9 @@ class TornadoWebTestCase(ZulipTestCase):
signals.request_finished.disconnect(close_old_connections)
self.session_cookie: dict[str, str] | None = None
try:
- yield
+ # Match production, where Tornado uses its own minimal urlconf.
+ with override_settings(ROOT_URLCONF="zproject.tornado_urls"):
+ yield
finally:
self.http_client.close()
self.http_server.stop()