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

Check if backend is loaded #412

Merged
merged 9 commits into from
Oct 20, 2022
Merged

Conversation

eyllanesc
Copy link
Contributor

@eyllanesc eyllanesc commented Mar 6, 2022

  • tests.
  • CHANGELOG.

Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

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

Thanks @eyllanesc!

Other than the small comment, can you also please:

  1. Add unittests for _is_library_loaded and _get_backend_loaded?
  2. Include a CHANGELOG entry.

src/pytestqt/qt_compat.py Outdated Show resolved Hide resolved
@eyllanesc
Copy link
Contributor Author

In addition to the changelog change, this part of the README.rst should also be rewritten.

pytest-qt/README.rst

Lines 79 to 99 in f00d7a4

Works with either PySide6_, PySide2_, PyQt6_ or PyQt5_, picking whichever
is available on the system, giving preference to the first one installed in
this order:
- ``PySide6``
- ``PySide2``
- ``PyQt6``
- ``PyQt5``
To force a particular API, set the configuration variable ``qt_api`` in your ``pytest.ini`` file to
``pyqt6``, ``pyside2``, ``pyqt6`` or ```pyqt5``:
.. code-block:: ini
[pytest]
qt_api=pyqt5
Alternatively, you can set the ``PYTEST_QT_API`` environment
variable to the same values described above (the environment variable wins over the configuration
if both are set).

tests/test_basics.py Outdated Show resolved Hide resolved
@nicoddemus
Copy link
Member

Thanks @eyllanesc, and sorry for the delay!

@nicoddemus nicoddemus merged commit 5b6ed5c into pytest-dev:master Oct 20, 2022
@eyllanesc eyllanesc deleted the backend-loaded branch October 21, 2022 20:55
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

2 participants