Skip to content

Commit

Permalink
change method name from cycler to cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhsuan committed Nov 27, 2024
1 parent a95553c commit bbbc266
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ def test_set_extended_mode(self, mock_dbus_proxy):
self.assertDictEqual(configuration, expected)

@patch("checkbox_support.dbus.gnome_monitor.Gio.DBusProxy")
def test_cycler(self, mock_dbus_proxy):
def test_cycle(self, mock_dbus_proxy):
"""
Test the cycler could get the right monitors configuration
Test the cycle could get the right monitors configuration
and send to ApplyMonitorsConfig.
"""

Expand Down Expand Up @@ -291,7 +291,7 @@ def test_cycler(self, mock_dbus_proxy):
[],
{},
)
gnome_monitor.cycler()
gnome_monitor.cycle()

logical_monitors = [
(0, 0, 1.0, 0, True, [("eDP-1", "[email protected]", {})]),
Expand All @@ -317,9 +317,9 @@ def test_cycler(self, mock_dbus_proxy):
)

@patch("checkbox_support.dbus.gnome_monitor.Gio.DBusProxy")
def test_cycler_no_cycling(self, mock_dbus_proxy):
def test_cycle_no_cycling(self, mock_dbus_proxy):
"""
Test the cycler could get the right monitors configuration
Test the cycle could get the right monitors configuration
(without res and trans change) and send to ApplyMonitorsConfig.
"""

Expand Down Expand Up @@ -378,7 +378,7 @@ def test_cycler_no_cycling(self, mock_dbus_proxy):
)
# mock callback
mock_callback = MagicMock()
gnome_monitor.cycler(
gnome_monitor.cycle(
res=False, trans=False, log=mock_callback, action=mock_callback
)

Expand Down

0 comments on commit bbbc266

Please sign in to comment.