Skip to content

Commit

Permalink
zip might make the monitors order, therefore changing the assertion m…
Browse files Browse the repository at this point in the history
…ethod
  • Loading branch information
hanhsuan committed Nov 29, 2024
1 parent 0d138fd commit f48541b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import re
import sys
import unittest
from unittest.mock import patch, Mock, MagicMock
Expand Down Expand Up @@ -404,6 +405,6 @@ def test_cycle_no_cycling(self, mock_dbus_proxy):
timeout_msec=-1,
cancellable=None,
)
mock_callback.assert_called_with(
"HDMI-1_2560x1440_normal_eDP-1_1920x1200_normal_"
)
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_")
assert pattern.match(argument_string)

0 comments on commit f48541b

Please sign in to comment.