-
-
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.
- Loading branch information
Showing
5 changed files
with
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""Test QtGui.""" | ||
from qtpy import QtGui | ||
|
||
|
||
def test_qdrag_functions(): | ||
"""Test functions mapping for QtGui.QDrag.""" | ||
assert QtGui.QDrag.exec_ | ||
|
||
|
||
def test_qguiapplication_functions(): | ||
"""Test functions mapping for QtGui.QGuiApplication.""" | ||
assert QtGui.QGuiApplication.exec_ | ||
|
||
|
||
def test_qtextdocument_functions(): | ||
"""Test functions mapping for QtGui.QTextDocument.""" | ||
assert QtGui.QTextDocument.print_ | ||
|
||
|
||
def test_enum_access(): | ||
""" | ||
Test scoped and unscoped enum access for qtpy.QtWidgets.*. | ||
""" | ||
assert QtGui.QColor.Rgb == QtGui.QColor.Spec.Rgb | ||
assert QtGui.QFont.AllUppercase == QtGui.QFont.Capitalization.AllUppercase | ||
assert QtGui.QIcon.Normal == QtGui.QIcon.Mode.Normal | ||
assert QtGui.QImage.Format_Invalid == QtGui.QImage.Format.Format_Invalid | ||
|
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
"""Test QtWidgets.""" | ||
from qtpy import QtWidgets | ||
|
||
|
||
def test_qtextedit_functions(): | ||
"""Test functions mapping for QtWidgets.QTextEdit.""" | ||
assert QtWidgets.QTextEdit.setTabStopWidth | ||
assert QtWidgets.QTextEdit.tabStopWidth | ||
assert QtWidgets.QTextEdit.print_ | ||
|
||
|
||
def test_qplaintextedit_functions(): | ||
"""Test functions mapping for QtWidgets.QPlainTextEdit.""" | ||
assert QtWidgets.QPlainTextEdit.setTabStopWidth | ||
assert QtWidgets.QPlainTextEdit.tabStopWidth | ||
assert QtWidgets.QPlainTextEdit.print_ | ||
|
||
|
||
def test_qapplication_functions(): | ||
"""Test functions mapping for QtWidgets.QApplication.""" | ||
assert QtWidgets.QApplication.exec_ | ||
|
||
|
||
def test_qdialog_functions(): | ||
"""Test functions mapping for QtWidgets.QDialog.""" | ||
assert QtWidgets.QDialog.exec_ | ||
|
||
|
||
def test_qmenu_functions(): | ||
"""Test functions mapping for QtWidgets.QDialog.""" | ||
assert QtWidgets.QMenu.exec_ | ||
|
||
|
||
def test_enum_access(): | ||
""" | ||
Test scoped and unscoped enum access for qtpy.QtWidgets.*. | ||
""" | ||
assert QtWidgets.QFileDialog.AcceptOpen == QtWidgets.QFileDialog.AcceptMode.AcceptOpen | ||
assert QtWidgets.QMessageBox.InvalidRole == QtWidgets.QMessageBox.ButtonRole.InvalidRole | ||
assert QtWidgets.QStyle.State_None == QtWidgets.QStyle.StateFlag.State_None |