fix(wallpaper_changer): remove test erquiring physical monitor
This commit is contained in:
1 parent
4760c7a78e
commit
996965dc62
1 file changed
+16
-16
@@ -145,22 +145,22 @@ class MonitorManagerTests(unittest.TestCase):
|
||||
)
|
||||
self.assertEqual(monitors.monitor_count, 2)
|
||||
|
||||
def test_detect_single_connected_monitor_actual_monitor(self) -> None:
|
||||
"""Verify a single enabled connector produces a one-monitor layout."""
|
||||
args = self.parse_args()
|
||||
config = Config.load(args)
|
||||
monitors = MonitorManager().get_screensize(
|
||||
config.headless_mode,
|
||||
config.monitor_file,
|
||||
)
|
||||
root = tk.Tk()
|
||||
width = root.winfo_screenwidth()
|
||||
height = root.winfo_screenheight()
|
||||
self.assertEqual(monitors.monitor_count, 1)
|
||||
self.assertEqual(monitors.screen_aspect_ratio, width / height)
|
||||
self.assertEqual(monitors.monitors[0].width, width)
|
||||
self.assertEqual(monitors.monitors[0].height, height)
|
||||
self.assertEqual(monitors.monitors[0].x_coord, 0)
|
||||
#def test_detect_single_connected_monitor_actual_monitor(self) -> None:
|
||||
# """Verify a single enabled connector produces a one-monitor layout."""
|
||||
# args = self.parse_args()
|
||||
# config = Config.load(args)
|
||||
# monitors = MonitorManager().get_screensize(
|
||||
# config.headless_mode,
|
||||
# config.monitor_file,
|
||||
# )
|
||||
# root = tk.Tk()
|
||||
# width = root.winfo_screenwidth()
|
||||
# height = root.winfo_screenheight()
|
||||
# self.assertEqual(monitors.monitor_count, 1)
|
||||
# self.assertEqual(monitors.screen_aspect_ratio, width / height)
|
||||
# self.assertEqual(monitors.monitors[0].width, width)
|
||||
# self.assertEqual(monitors.monitors[0].height, height)
|
||||
# self.assertEqual(monitors.monitors[0].x_coord, 0)
|
||||
|
||||
def test_detect_single_connected_monitor_patched_monitor(self) -> None:
|
||||
"""Verify one enabled connector reports its virtual 1920x1080 size."""
|
||||
|
||||
Reference in new issue
Block a user