Skip to content

Commit

Permalink
fix black error
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhsuan committed Nov 29, 2024
1 parent f48541b commit 009ec45
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,10 @@ def test_cycle_no_cycling(self, mock_dbus_proxy):
# mock callback
mock_callback = MagicMock()
gnome_monitor.cycle(
res=False, transform=False, log=mock_callback, action=mock_callback
res=False,
transform=False,
log=mock_callback,
action=mock_callback,
)

logical_monitors = [
Expand All @@ -406,5 +409,7 @@ def test_cycle_no_cycling(self, mock_dbus_proxy):
cancellable=None,
)
argument_string = mock_callback.call_args[0][0]
pattern = re.compile("HDMI-1_2560x1440_normal_eDP-1_1920x1200_normal_|eDP-1_1920x1200_normal_HDMI-1_2560x1440_normal_")
p1 = "HDMI-1_2560x1440_normal_"
p2 = "eDP-1_1920x1200_normal_"
pattern = re.compile("{}{}|{}{}".format(p1, p2, p2, p1))
assert pattern.match(argument_string)

0 comments on commit 009ec45

Please sign in to comment.