Skip to content

Commit

Permalink
skipped QWebEngine tests on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
giumas committed Apr 27, 2024
1 parent 52c161d commit ac318c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/app/browser/test_browser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
import platform
import sys

from PySide6 import QtCore, QtWidgets, QtTest

Expand All @@ -8,6 +8,7 @@

class TestAppBrowserBrowser(unittest.TestCase):

@unittest.skipIf(sys.platform == "linux", "Skip QWebEngine on Linux")
def test_change_url(self):

if not QtWidgets.QApplication.instance():
Expand All @@ -21,6 +22,7 @@ def test_change_url(self):
w.change_url(new_url)
self.assertEqual(new_url, w.url())

@unittest.skipIf(sys.platform == "linux", "Skip QWebEngine on Linux")
def test_type_url(self):

if not QtWidgets.QApplication.instance():
Expand Down
5 changes: 3 additions & 2 deletions tests/app/browser/test_browser_download_widget.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import unittest
import sys

from PySide6 import QtCore, QtWidgets, QtTest, QtWebEngineWidgets
from PySide6 import QtWidgets, QtWebEngineWidgets

from hyo2.abc2.app.browser.download_widget import DownloadWidget


class TestAppBrowserDownloadWidget(unittest.TestCase):

@unittest.skipIf(sys.platform == "linux", "Skip QWebEngine on Linux")
def test_download(self):

if not QtWidgets.QApplication.instance():
Expand Down
2 changes: 2 additions & 0 deletions tests/app/browser/test_web_renderer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import unittest
import sys

from PySide6 import QtWidgets

Expand All @@ -7,6 +8,7 @@

class TestWebRenderer(unittest.TestCase):

@unittest.skipIf(sys.platform == "linux", "Skip QWebEngine on Linux")
def test_init(self):
# noinspection PyArgumentList
if not QtWidgets.QApplication.instance():
Expand Down

0 comments on commit ac318c5

Please sign in to comment.