From 255c6b4e0bf9c6338c9f37e9f1acb9df0925ef1f Mon Sep 17 00:00:00 2001 From: dalthviz Date: Mon, 21 Aug 2023 12:19:08 -0500 Subject: [PATCH 1/2] Check QtWidgets.QFileDialog.Options definition --- qtpy/tests/test_qtwidgets.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/qtpy/tests/test_qtwidgets.py b/qtpy/tests/test_qtwidgets.py index 2858a3f3..203c11b7 100644 --- a/qtpy/tests/test_qtwidgets.py +++ b/qtpy/tests/test_qtwidgets.py @@ -155,7 +155,7 @@ def test_opengl_imports(): reason="Crashes on macOS with Python 3.7 with 'Illegal instruction: 4'") @pytest.mark.parametrize("keyword", ["dir", "directory"]) @pytest.mark.parametrize("instance", [True, False]) -def test_qfiledialog_compat(tmp_path, qtbot, keyword, instance): +def test_qfiledialog_dir_compat(tmp_path, qtbot, keyword, instance): """ This function is testing if the decorators that renamed the dir/directory keyword are working. @@ -229,4 +229,11 @@ def run(self, allow_restart=True): qtbot.waitUntil(thr.isRunning, timeout=1000) dlg = QtWidgets.QFileDialog() if instance else QtWidgets.QFileDialog dlg.getExistingDirectory(**kwargs) - qtbot.waitUntil(thr.isFinished, timeout=3000) \ No newline at end of file + qtbot.waitUntil(thr.isFinished, timeout=3000) + + +def test_qfiledialog_flags_typedef(): + """ + Test existence of `QFlags