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

pytest: Add support for pytest-8.2 on Python3.11 (color, verbose) #113

Conversation

bernhardkaindl
Copy link
Collaborator

@bernhardkaindl bernhardkaindl commented May 31, 2024

Update support for testing using pytest:
Add support for pytest-8.2 on Python3.11 (color, verbose)

This change supports the different assertion diagnostic output that pytest-8 produces:

The assertions from pytest-8 include escape sequences for colouring the output nicely, and to pass both, the string that we expect to find in the assertion needs to be shorter.

For pytest v8 to produce the assertion messages that this test expects, we need to add -vv to the default pytest options to enable more verbose assertion messages.

By default, also show the local variables in the traceback of an test exception: Add --showlocals to the default options.

@coveralls
Copy link

Coverage Status

coverage: 93.035%. remained the same
when pulling 6d0fcd8 on xenserver-next:add-support-for-pytest-8.2-with-python3.11
into 2bc9efe on xenserver:master.

@bernhardkaindl bernhardkaindl merged commit fca707e into xenserver:master Jun 4, 2024
3 checks passed
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.

4 participants