-
Notifications
You must be signed in to change notification settings - Fork 0
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
revert assert_batch_job helper #12
Comments
I managed to get |
Related: I noticed this other helper |
I'm a bit late in my response but I agree that we should remove assert_batch_job. |
Also note that this helper exposes internal (kibana) urls in this open source repo |
openeo-geopyspark-integrationtests/tests/test_integration.py
Lines 70 to 73 in 6a2a65e
@JeroenVerstraelen you added
assert_batch_job
to simplify debugging integration tests I guess, but I think that this helper actually makes post-mortem investigation harder.It's important to understand how pytest handles and report
assert
failures. If you use something likeassert "foo" == "bar"
in a test, pytest will clearly print both the values ("foo" and "bar") in the test failure report, which is extremely useful for debugging failed tests. (Note that pytest does quite a bit of magic behind the screens to make this possible)If you replace that with a helper construct like
you lose this unique selling point of pytest as you will only see something like "assert False" in the test report, without any pointers to the actual values that were compared ("foo" and "bar" here)
I think we should revert introducing that
assert_batch_job
helperThe text was updated successfully, but these errors were encountered: