mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 23:19:10 +00:00
In these tests, the code ends up with a logged in session when it's undesired - later on these tests make requests to a different subdomain - where a logged in session is not supposed to exist. This leads to an unintended, strange situation where request.user is a user from the old subdomain but the request itself is to a *different* subdomain. This throws off get_realm_from_request, which will return the realm from request.user.realm - which is not what these tests want and can lead to these tests failing when some of the production code being tested switches to using get_realm_from_request instead of get_realm(get_subdomain).
98 KiB
98 KiB