-
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR: Update
pytest.importorskip
usage (CI) (#486)
- Loading branch information
Showing
35 changed files
with
107 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import pytest | ||
|
||
from qtpy.tests.utils import pytest_importorskip | ||
|
||
|
||
def test_qt3dlogic(): | ||
"""Test the qtpy.Qt3DLogic namespace""" | ||
Qt3DLogic = pytest.importorskip("qtpy.Qt3DLogic") | ||
Qt3DLogic = pytest_importorskip("qtpy.Qt3DLogic") | ||
|
||
assert Qt3DLogic.QLogicAspect is not None | ||
assert Qt3DLogic.QFrameAction is not None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import pytest | ||
|
||
from qtpy.tests.utils import pytest_importorskip | ||
|
||
|
||
def test_qtaxcontainer(): | ||
"""Test the qtpy.QtAxContainer namespace""" | ||
QtAxContainer = pytest.importorskip("qtpy.QtAxContainer") | ||
QtAxContainer = pytest_importorskip("qtpy.QtAxContainer") | ||
|
||
assert QtAxContainer.QAxSelect is not None | ||
assert QtAxContainer.QAxWidget is not None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import pytest | ||
|
||
from qtpy.tests.utils import pytest_importorskip | ||
|
||
|
||
def test_qtpdfwidgets(): | ||
"""Test the qtpy.QtPdfWidgets namespace""" | ||
QtPdfWidgets = pytest.importorskip("qtpy.QtPdfWidgets") | ||
QtPdfWidgets = pytest_importorskip("qtpy.QtPdfWidgets") | ||
|
||
assert QtPdfWidgets.QPdfView is not None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import pytest | ||
|
||
from qtpy.tests.utils import pytest_importorskip | ||
|
||
|
||
def test_qtquickcontrols2(): | ||
"""Test the qtpy.QtQuickControls2 namespace""" | ||
QtQuickControls2 = pytest.importorskip("qtpy.QtQuickControls2") | ||
QtQuickControls2 = pytest_importorskip("qtpy.QtQuickControls2") | ||
|
||
assert QtQuickControls2.QQuickStyle is not None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import pytest | ||
|
||
from qtpy.tests.utils import pytest_importorskip | ||
|
||
|
||
def test_qtsvgwidgets(): | ||
"""Test the qtpy.QtSvgWidgets namespace""" | ||
QtSvgWidgets = pytest.importorskip("qtpy.QtSvgWidgets") | ||
QtSvgWidgets = pytest_importorskip("qtpy.QtSvgWidgets") | ||
|
||
assert QtSvgWidgets.QGraphicsSvgItem is not None | ||
assert QtSvgWidgets.QSvgWidget is not None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import pytest | ||
|
||
from qtpy.tests.utils import pytest_importorskip | ||
|
||
|
||
def test_qtuitools(): | ||
"""Test the qtpy.QtUiTools namespace""" | ||
QtUiTools = pytest.importorskip("qtpy.QtUiTools") | ||
QtUiTools = pytest_importorskip("qtpy.QtUiTools") | ||
|
||
assert QtUiTools.QUiLoader is not None |
Oops, something went wrong.