test_events: Rename functions to use dark_theme and light_theme.

This commit renames the tests for changing logo in test_events
to use dark_theme and light_theme instead of night_mode and
day_mode.
This commit is contained in:
Sahil Batra 2021-12-03 12:43:58 +05:30 committed by Tim Abbott
parent edccb79010
commit a34dd11b5b
1 changed files with 2 additions and 2 deletions

View File

@ -1691,14 +1691,14 @@ class NormalActionsTest(BaseAction):
events = self.verify_action(action, state_change_expected=True) events = self.verify_action(action, state_change_expected=True)
check_realm_update_dict("events[0]", events[0]) check_realm_update_dict("events[0]", events[0])
def test_change_realm_day_mode_logo_source(self) -> None: def test_change_realm_light_theme_logo_source(self) -> None:
action = lambda: do_change_logo_source( action = lambda: do_change_logo_source(
self.user_profile.realm, Realm.LOGO_UPLOADED, False, acting_user=self.user_profile self.user_profile.realm, Realm.LOGO_UPLOADED, False, acting_user=self.user_profile
) )
events = self.verify_action(action, state_change_expected=True) events = self.verify_action(action, state_change_expected=True)
check_realm_update_dict("events[0]", events[0]) check_realm_update_dict("events[0]", events[0])
def test_change_realm_night_mode_logo_source(self) -> None: def test_change_realm_dark_theme_logo_source(self) -> None:
action = lambda: do_change_logo_source( action = lambda: do_change_logo_source(
self.user_profile.realm, Realm.LOGO_UPLOADED, True, acting_user=self.user_profile self.user_profile.realm, Realm.LOGO_UPLOADED, True, acting_user=self.user_profile
) )