Skip to content

Conversation

@mrava87
Copy link
Collaborator

@mrava87 mrava87 commented Jan 20, 2026

Switch from code pattern:

with pytest.raises(ValueError) as exception_info:
...
error_message = str(exception_info.value)
assert "text to match" in error_message

to:

with pytest.raises(ValueError, match="text to match"):

in all tests.

@mrava87 mrava87 marked this pull request as ready for review January 21, 2026 08:49
@mrava87 mrava87 added the CI Test suite and CI label Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Test suite and CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant