Skip to content

fail-on-template-vars: be more discreet with ignore_template_errors #1121

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

Conversation

xavfernandez
Copy link
Contributor

When using the @pytest.mark.ignore_template_errors on a test, we could expect the test to return to its original behavior (just like running them without --fail-on-template-vars).

This would ease the use of the option since ignored tests are less likely to crash.

@xavfernandez xavfernandez force-pushed the silent_failure_when_ignoring_template_error branch 2 times, most recently from f5c5f37 to 7f5e003 Compare April 25, 2024 09:23
@xavfernandez xavfernandez force-pushed the silent_failure_when_ignoring_template_error branch from 7f5e003 to 9edaf24 Compare June 12, 2024 20:21
Copy link
Member

@bluetech bluetech left a comment

Choose a reason for hiding this comment

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

Thanks, makes sense!

@bluetech bluetech merged commit 3c46471 into pytest-dev:master Jul 9, 2024
3 of 16 checks passed
@xavfernandez xavfernandez deleted the silent_failure_when_ignoring_template_error branch July 10, 2024 07:20
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.

2 participants