diff --git a/openlp/core/ui/lib/filedialogpatches.py b/openlp/core/ui/lib/filedialogpatches.py index f4b8d60ce..8b8b9a105 100755 --- a/openlp/core/ui/lib/filedialogpatches.py +++ b/openlp/core/ui/lib/filedialogpatches.py @@ -36,10 +36,10 @@ class PQFileDialog(QtWidgets.QFileDialog): """ Reimplement `getExistingDirectory` so that it can be called with, and return Path objects - :type parent: QtWidgets.QWidget or None + :type parent: QtWidgets.QWidget or None :type caption: str :type directory: pathlib.Path - :type options: QtWidgets.QFileDialog.Options + :type options: QtWidgets.QFileDialog.Options :rtype: tuple[Path, str] """ @@ -57,12 +57,12 @@ class PQFileDialog(QtWidgets.QFileDialog): """ Reimplement `getOpenFileName` so that it can be called with, and return Path objects - :type parent: QtWidgets.QWidget or None + :type parent: QtWidgets.QWidget or None :type caption: str :type directory: pathlib.Path :type filter: str :type initialFilter: str - :type options: QtWidgets.QFileDialog.Options + :type options: QtWidgets.QFileDialog.Options :rtype: tuple[Path, str] """ @@ -79,12 +79,12 @@ class PQFileDialog(QtWidgets.QFileDialog): """ Reimplement `getOpenFileNames` so that it can be called with, and return Path objects - :type parent: QtWidgets.QWidget or None + :type parent: QtWidgets.QWidget or None :type caption: str :type directory: pathlib.Path :type filter: str :type initialFilter: str - :type options: QtWidgets.QFileDialog.Options + :type options: QtWidgets.QFileDialog.Options :rtype: tuple[list[Path], str] """ args, kwargs = replace_params(args, kwargs, ((2, 'directory', path_to_str),)) @@ -101,12 +101,12 @@ class PQFileDialog(QtWidgets.QFileDialog): """ Reimplement `getSaveFileName` so that it can be called with, and return Path objects - :type parent: QtWidgets.QWidget or None + :type parent: QtWidgets.QWidget or None :type caption: str :type directory: pathlib.Path :type filter: str :type initialFilter: str - :type options: QtWidgets.QFileDialog.Options + :type options: QtWidgets.QFileDialog.Options :rtype: tuple[Path or None, str] """ args, kwargs = replace_params(args, kwargs, ((2, 'directory', path_to_str),)) diff --git a/tests/functional/openlp_core_common/test_path.py b/tests/functional/openlp_core_common/test_path.py index e1d015e6a..2d9490012 100644 --- a/tests/functional/openlp_core_common/test_path.py +++ b/tests/functional/openlp_core_common/test_path.py @@ -85,4 +85,4 @@ class TestPath(TestCase): result = str_to_path('') # THEN: `path_to_str` should return None - self.assertEqual(result, None) \ No newline at end of file + self.assertEqual(result, None) diff --git a/tests/functional/openlp_core_ui_lib/test_filedialogpatches.py b/tests/functional/openlp_core_ui_lib/test_filedialogpatches.py index 2e6fe318c..af5c466d2 100755 --- a/tests/functional/openlp_core_ui_lib/test_filedialogpatches.py +++ b/tests/functional/openlp_core_ui_lib/test_filedialogpatches.py @@ -18,8 +18,6 @@ class TestFileDialogPatches(TestCase): """ Test that the :class:`PQFileDialog` instantiates correctly """ - #app = QtWidgets.QApplication(sys.argv) - # GIVEN: The PQFileDialog class # WHEN: Creating an instance instance = PQFileDialog()