Skip to content
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

Merged
merged 4 commits into from
Mar 15, 2018

Conversation

HazenBabcock
Copy link
Contributor

This I think adds the modal dialog handling documentation you were looking for in issue #18 and issue #19.

@coveralls
Copy link

coveralls commented Mar 13, 2018

Coverage Status

Coverage decreased (-2.6%) to 96.723% when pulling ae4947d on HazenBabcock:master into 1b8d2d8 on pytest-dev:master.


.. code-block:: python

def test_Qt(qtbot, mock):
Copy link
Member

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.


.. code-block:: python

def test_form_registration(qtbot, mock):
Copy link
Member

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.

@nicoddemus
Copy link
Member

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. 👍

@nicoddemus
Copy link
Member

nicoddemus commented Mar 15, 2018

Fixes #19

@HazenBabcock
Copy link
Contributor Author

Great, thanks for the help with this PR.

@nicoddemus
Copy link
Member

@The-Compiler are you OK with merging this? 😁 (failures are unrelated and I plan to tackle them in #202)

@The-Compiler
Copy link
Member

Pushed a commit to remove the last sentence as it's not true anymore. LGTM now! 👍

@The-Compiler The-Compiler merged commit 1cacb3c into pytest-dev:master Mar 15, 2018
@nicoddemus
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants