From 9fa67f0fa9b665521ece0429aec870762ab5b9b1 Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Tue, 9 May 2023 23:52:37 +0530 Subject: [PATCH] tests: Add coverage to actions/create_realm.py. This commit adds test coverage to actions/create_realm.py. The file is also removed from not_yet_fully_covered list since it has 100% coverage now. --- tools/test-backend | 1 - zerver/tests/test_realm.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test-backend b/tools/test-backend index 0fcca806ba..73309e3512 100755 --- a/tools/test-backend +++ b/tools/test-backend @@ -75,7 +75,6 @@ not_yet_fully_covered = [ "analytics/views/stats.py", "analytics/views/support.py", # Major lib files should have 100% coverage - "zerver/actions/create_realm.py", "zerver/actions/message_edit.py", "zerver/actions/presence.py", "zerver/lib/addressee.py", diff --git a/zerver/tests/test_realm.py b/zerver/tests/test_realm.py index 8d4a876ea3..a6887bba07 100644 --- a/zerver/tests/test_realm.py +++ b/zerver/tests/test_realm.py @@ -897,6 +897,7 @@ class RealmTest(ZulipTestCase): invite_required=False, plan_type=Realm.PLAN_TYPE_STANDARD_FREE, org_type=Realm.ORG_TYPES["community"]["id"], + enable_read_receipts=True, ) self.assertEqual(realm.string_id, "realm_string_id") self.assertEqual(realm.name, "realm name") @@ -906,6 +907,7 @@ class RealmTest(ZulipTestCase): self.assertEqual(realm.plan_type, Realm.PLAN_TYPE_STANDARD_FREE) self.assertEqual(realm.org_type, Realm.ORG_TYPES["community"]["id"]) self.assertEqual(realm.date_created, date_created) + self.assertEqual(realm.enable_read_receipts, True) self.assertTrue( RealmAuditLog.objects.filter(