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

Docs: suggest direct methods instead of qtbot's #493

Merged
merged 2 commits into from
Jun 9, 2023

Conversation

nicoddemus
Copy link
Member

@nicoddemus nicoddemus commented Jun 8, 2023

Updates the documentation to use direct methods in most interactions, as the documentation currently leads users to call qtbot's methods for normal interactions, such changing the text of a QLineEdit or an item of a QComboBox.

Also changed some code examples to use .. code-block: python, so they are formatted by black.

In addition, fixed CI, see commit message 1e1a7d5.

Closes #488.

Copy link
Member

@The-Compiler The-Compiler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a good idea!

docs/intro.rst Outdated Show resolved Hide resolved
docs/tutorial.rst Outdated Show resolved Hide resolved
docs/tutorial.rst Outdated Show resolved Hide resolved
docs/tutorial.rst Outdated Show resolved Hide resolved
docs/virtual_methods.rst Outdated Show resolved Hide resolved
src/pytestqt/qtbot.py Outdated Show resolved Hide resolved
docs/note_dialogs.rst Outdated Show resolved Hide resolved
nicoddemus and others added 2 commits June 9, 2023 16:53
Updates the documentation to use direct methods in most interactions,
as the documentation currently leads users to call `qtbot`'s methods
for normal interactions, such changing the text of a `QLineEdit` or an
item of a `QComboBox`.

Also changed some code examples to use `.. code-block: python`, so they
are formatted by black.

Co-authored-by: Florian Bruhin <me@the-compiler.org>
Currently `pyqt6` started to fail during import with this error on `ubuntu-20.04`:

```
INTERNALERROR> ImportError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /home/runner/work/pytest-qt/pytest-qt/.tox/py37-pyqt6/lib/python3.7/site-packages/PyQt6/QtGui.abi3.so)
py37-pyqt6: exit 3 (0.27 seconds) /home/runner/work/pytest-qt/pytest-qt> pytest -ra --color=yes pid=2880
```

Using `ubuntu-latest`, and also re-enabling most jobs except one.
@nicoddemus nicoddemus force-pushed the docs-methods-vs-clicks branch from 8194231 to 5a75583 Compare June 9, 2023 19:53
@nicoddemus nicoddemus requested a review from The-Compiler June 9, 2023 19:54
@nicoddemus
Copy link
Member Author

Thanks for the review, applied all suggestions. 👍

@nicoddemus nicoddemus merged commit 8644d63 into pytest-dev:master Jun 9, 2023
@nicoddemus nicoddemus deleted the docs-methods-vs-clicks branch June 9, 2023 20:56
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.

test_exceptions fails with pyside6
2 participants