-
Notifications
You must be signed in to change notification settings - Fork 63
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
Improve tests #86
Improve tests #86
Conversation
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.
Thanks for the PR 👍 I've created a related PR with a couple of minor proposals & cassettes on top of the changes, please take a look and let me know if you want to discuss any of the changes.
Sweet, I like them, merged your changes into my branch right away :) |
Codecov Report
@@ Coverage Diff @@
## master #86 +/- ##
=======================================
Coverage 93.26% 93.26%
=======================================
Files 28 28
Lines 1870 1870
=======================================
Hits 1744 1744
Misses 126 126 Continue to review full report at Codecov.
|
frontier.flush() | ||
|
||
assert frontier.newcount == 150 + old_count | ||
|
||
# insert repeated fingerprints | ||
fps4 = [{'fp': '/index_%s.html' % fp} for fp in range(0, batch_size)] |
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.
@immerrr last question about the PR before merge, why the test with repeated fps was changed?
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.
Because fps4
was unused and fps3
were used as "repeated fingerprints" instead.
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.
Oh, thanks for cleaning it, I didn't spot it even now 🤦♂️
Thanks again @immerrr! 👍 |
This PR adds pytest-catchlog for reviewing errors sent to logs, e.g. from background threads.
It also adds a rather unique frontier name for each test case so that test case ordering doesn't affect the vcrpy cassettes.