-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a note about how to handle modal dialogs. #201
Conversation
docs/note_dialogs.rst
Outdated
|
||
.. code-block:: python | ||
|
||
def test_Qt(qtbot, mock): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be called mocker
, mock
is just a compatibility alias: pytest-dev/pytest-mock#4
However, why require another plugin just for a doc example anyways? I think it'd be better to just use the built-in monkeypatch.
docs/note_dialogs.rst
Outdated
|
||
.. code-block:: python | ||
|
||
def test_form_registration(qtbot, mock): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above regarding mock
.
Thanks a lot @HazenBabcock! I agree with @The-Compiler's comments so I went ahead and applied the changes myself. Thanks again for submitting the PR, we appreciate it. 👍 |
Fixes #19 |
Great, thanks for the help with this PR. |
@The-Compiler are you OK with merging this? 😁 (failures are unrelated and I plan to tackle them in #202) |
Pushed a commit to remove the last sentence as it's not true anymore. LGTM now! 👍 |
Thanks! |
This I think adds the modal dialog handling documentation you were looking for in issue #18 and issue #19.