Skip to content

Demonstrate testing getSaveFileName() dialogs #5

Description

@jmcgeheeiv

Dan raised this issue in the comments of deprecated blog article https://johnnado.com/pyqt-qtest-example/.

This may be a duplicate of #4.

Dan

December 13, 2020 @ 11:50 am

Helpful tutorial thanks! Does anybody know a good way to test the getSaveFileName() dialogs? For example, you click File -> Save As – and then a modal dialog appears asking for the location and name of the file you want to save. When completed we should be able to assert a new file has been created somewhere (or at least the dialog generated a path). Is there anyway to complete this using unittest and QTest? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions