pytest-django
pytest-django copied to clipboard
running all tests with --fail-on-template-vars pass but running a single test with an undefined template var fails
trafficstars
Hello,
I'm dealing with a confusing issue. I have--fail-on-template-vars in my pytest.ini. When I run all the tests, all tests pass. But I know there are some test that should fail because they have undefined template vars. When I do a single run on the tests that should fail with -k they fail. After that if I run again the full test suit the error is noticed and the test fail.
So resuming:
- Run all tests: Pass
- Run single test that should fail: Fail
- Run all tests: Fail
I can't figure out what's going on. I'm using pytest 6.3.1 and pytest-django 4.1.0
Thank you!
Can you provide a way to reproduce this?
Possibly fixed by 4e1906ad88c2cc101d158e6b6de910992b96ddd5, let me know if not.