-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Unify, document and fix functional tests internal updating process #4004
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
Unify, document and fix functional tests internal updating process #4004
Conversation
tests/test_func.py
Outdated
if len(sys.argv) > 1: | ||
FILTER_RGX = sys.argv[1] | ||
del sys.argv[1] | ||
pytest.main(sys.argv) | ||
if UPDATE_FILE.exists(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the intention here to delete it only after the tests complete successfully or in all the cases, including test failures? Worth putting in a try-finally
if it's the latter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 98dc5ca
2 similar comments
fb29593
to
98dc5ca
Compare
Description
This fix the problem we had with the command supposed to update functional tests. It uniformize it between legacy and current functional tests, document it for legacy tests and fix it for current functional tests.
Type of Changes