tests: Use subTest in test_update_realm_properties.

This commit is contained in:
savish
2019-02-13 13:34:49 +05:30
committed by Tim Abbott
parent 9c292fbeab
commit aa605468b6

View File

@@ -540,7 +540,8 @@ class RealmAPITest(ZulipTestCase):
@slow("Tests a dozen properties in a loop")
def test_update_realm_properties(self) -> None:
for prop in Realm.property_types:
self.do_test_realm_update_api(prop)
with self.subTest(property=prop):
self.do_test_realm_update_api(prop)
def test_update_realm_allow_message_editing(self) -> None:
"""Tests updating the realm property 'allow_message_editing'."""