Skip GUI tests on Windows and Linux
This commit is contained in:
parent
e184353493
commit
b1c164add0
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user