Skip to content
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

Follow-up to #1829: Simplify condition #1833

Merged
merged 1 commit into from
Oct 8, 2020
Merged

Conversation

sir-sigurd
Copy link
Member

No description provided.

@sir-sigurd sir-sigurd requested a review from akarve October 6, 2020 06:43
Comment on lines +121 to +123
if not (
package_stats is None
or isinstance(package_stats, dict) and {'total_files', 'total_bytes'}.issubset(package_stats)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also makes the exception to be raised on non-dict falsy values which I think was expected.

@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2020

Codecov Report

Merging #1833 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1833   +/-   ##
=======================================
  Coverage   89.48%   89.48%           
=======================================
  Files          62       62           
  Lines        7237     7237           
=======================================
  Hits         6476     6476           
  Misses        761      761           
Flag Coverage Δ
#api-python 87.87% <ø> (ø)
#lambda 92.29% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lambdas/es/indexer/document_queue.py 92.85% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 52e881b...ee10adb. Read the comment docs.

@sir-sigurd sir-sigurd merged commit e7e8b19 into master Oct 8, 2020
@sir-sigurd sir-sigurd deleted the simplify-package-stats branch October 8, 2020 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants