From a34dd11b5bc4e01adf9c143a2196fe24e53dac91 Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Fri, 3 Dec 2021 12:43:58 +0530 Subject: [PATCH] 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. --- zerver/tests/test_events.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.py index e02c19be56..03a9bb98a0 100644 --- a/zerver/tests/test_events.py +++ b/zerver/tests/test_events.py @@ -1691,14 +1691,14 @@ class NormalActionsTest(BaseAction): events = self.verify_action(action, state_change_expected=True) 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( self.user_profile.realm, Realm.LOGO_UPLOADED, False, acting_user=self.user_profile ) events = self.verify_action(action, state_change_expected=True) 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( self.user_profile.realm, Realm.LOGO_UPLOADED, True, acting_user=self.user_profile )