-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add tests for caching. #10
Conversation
Review status: 0 of 6 files reviewed at latest revision, all discussions resolved. Comments from the review on Reviewable.io |
Reviewed 6 of 6 files at r1. tests/collection_test.py, line 11 [r1] (raw file): tests/collection_test.py, line 40 [r1] (raw file): tests/collection_test.py, line 48 [r1] (raw file): collection2 = ... tests/collection_test.py, line 52 [r1] (raw file):
What I suggest to reduce that:
tests/collection_test.py, line 54 [r1] (raw file): Can you try using reflection to somehow actually modify the source code? Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 5 unresolved discussions, some commit checks failed. tests/collection_test.py, line 11 [r1] (raw file): tests/collection_test.py, line 40 [r1] (raw file): tests/collection_test.py, line 48 [r1] (raw file): tests/collection_test.py, line 52 [r1] (raw file): I reduced it to testing only 1 and 2 for now, because that's also what the name of the function says tests/collection_test.py, line 54 [r1] (raw file): I will remember it when I will write a test for the changed hash, but I removed this case for now anyways (see above) Comments from the review on Reviewable.io |
ae93691
to
1e5f8d3
Compare
Reviewed 3 of 3 files at r2, 1 of 1 files at r4. tests/collection_test.py, line 11 [r1] (raw file): tests/collection_test.py, line 53 [r4] (raw file): assertEqual(counter_first_run, test_extractor...counter) so that if there's a failure the error message will show it correctly. Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 2 unresolved discussions. tests/collection_test.py, line 11 [r1] (raw file): tests/collection_test.py, line 53 [r4] (raw file): Comments from the review on Reviewable.io |
better comment address comments address latest comments
1e5f8d3
to
c53455d
Compare
always import modules instead of classes
and move TestExtractor into its own module to be re-used for other tests
+@pcorpet
This change is