-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[FIrestore Samples] Update tests to be self-contained and verified for correctness. #1788
Comments
This may be fixed in the updated tests from @BenWhitehead. |
There are a few older tests that need to have assertions added to them. |
@BenWhitehead do we have the individual tests we should fix? |
@crwilcox PTAL |
Apologies, I missed this in email. The tests are not validating correctness and only making sure samples execute without failures. Here's an example of a test being verified: https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/firestore/cloud-client/snippets_test.py#L74-L80 Here's an example of test not being verified: https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/firestore/cloud-client/snippets_test.py#L70-L71 |
I've been in touch with @BenWhitehead recently, and it is still in the pipeline. |
In which file did you encounter the issue?
https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/firestore/cloud-client/snippets_test.py
Describe the issue
Tests aren't self contained and also not being verified for correctness. At the moment, tests only run the samples and verify that they execute without failure. Although, tests do provide some level of support using this method, they aren't verifying state correctness of Firestore post after testing a given sample.
The text was updated successfully, but these errors were encountered: