mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
test_realm: Fix realm confirmation object test case.
We are no longer creating confirmation objects associated with realms directly. This should test for `RealmReactivationStatus` instead. Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
parent
ed77684427
commit
d1acd67897
@ -374,10 +374,11 @@ class RealmTest(ZulipTestCase):
|
||||
realm = get_realm("zulip")
|
||||
do_deactivate_realm(realm, acting_user=None)
|
||||
self.assertTrue(realm.deactivated)
|
||||
create_confirmation_link(realm, Confirmation.REALM_REACTIVATION)
|
||||
obj = RealmReactivationStatus.objects.create(realm=realm)
|
||||
create_confirmation_link(obj, Confirmation.REALM_REACTIVATION)
|
||||
confirmation = Confirmation.objects.last()
|
||||
assert confirmation is not None
|
||||
self.assertEqual(confirmation.content_object, realm)
|
||||
self.assertEqual(confirmation.content_object, obj)
|
||||
self.assertEqual(confirmation.realm, realm)
|
||||
|
||||
def test_do_send_realm_reactivation_email(self) -> None:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user