Skip GUI tests on Windows and Linux

This commit is contained in:
Timmy Welch 2024-12-20 16:51:54 -08:00
parent e184353493
commit b1c164add0
2 changed files with 4 additions and 0 deletions

View File

@ -323,6 +323,7 @@ per-file-ignores =
build-tools/generate_settngs.py: T20
build-tools/oidc-exchange.py: T20
tests/*: L
tests/pyqttoast_test.py: E402
[mypy]
exclude = comictaggerlib/graphics/resources.py

View File

@ -1,10 +1,13 @@
from __future__ import annotations
import platform
from unittest.mock import patch
import pytest
pytest.importorskip("PyQt5")
if platform.platform != "Darwin":
raise pytest.skip.Exception("GUI Testing sucks", allow_module_level=True)
from PyQt5.QtCore import QMargins, QRect, QSize, Qt
from PyQt5.QtGui import QColor, QFont, QGuiApplication, QPixmap
from PyQt5.QtWidgets import QMainWindow