Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_realm: Fix test_do_deactivate_realm_clears_user_realm_cache.
Mateusz Mandera132ce525b172
diff --git a/zerver/tests/test_realm.py b/zerver/tests/test_realm.pyindex aac261b941a..0dcec14c8a6 100644--- a/zerver/tests/test_realm.py+++ b/zerver/tests/test_realm.py@@ -179,10 +179,10 @@ class RealmTest(ZulipTestCase):Hamlet, and we end by checking the cache to ensure that hisrealm appears to be deactivated. You can make this test failby disabling cache.flush_realm()."""- self.example_user("hamlet")+ get_user_profile_by_email("[email protected]")realm = get_realm("zulip")do_deactivate_realm(realm)- user = self.example_user("hamlet")+ user = get_user_profile_by_email("[email protected]")self.assertTrue(user.realm.deactivated)def test_do_change_realm_subdomain_clears_user_realm_cache(self) -> None: