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

Closes #6365. Fix overridable methods in MediaPipeline #6368

Merged
merged 3 commits into from
May 28, 2024

Conversation

kumar-sanchay
Copy link
Contributor

Closes #6365

Copy link

codecov bot commented May 18, 2024

Codecov Report

Attention: Patch coverage is 58.33333% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 43.85%. Comparing base (180bc9b) to head (e51c517).
Report is 13 commits behind head on master.

Current head e51c517 differs from pull request most recent head 40cae19

Please upload reports for the commit 40cae19 to get more accurate results.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #6368       +/-   ##
===========================================
- Coverage   85.00%   43.85%   -41.16%     
===========================================
  Files         161      162        +1     
  Lines       11962    12114      +152     
  Branches     1872     1904       +32     
===========================================
- Hits        10168     5312     -4856     
- Misses       1512     6425     +4913     
- Partials      282      377       +95     
Files Coverage Δ
scrapy/pipelines/media.py 32.33% <58.33%> (-66.87%) ⬇️

... and 143 files with indirect coverage changes

@kumar-sanchay kumar-sanchay force-pushed the override-methods branch 4 times, most recently from 11fcff5 to e51c517 Compare May 19, 2024 13:40
scrapy/pipelines/media.py Outdated Show resolved Hide resolved
tests/test_pipeline_media.py Outdated Show resolved Hide resolved
@kumar-sanchay kumar-sanchay force-pushed the override-methods branch 6 times, most recently from 16f7c7d to 0a45703 Compare May 20, 2024 16:54
fail = Failure(Exception())
assert self.pipe.media_failed(fail, request, self.info) is fail

def test_default_item_completed(self):
Copy link
Member

Choose a reason for hiding this comment

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

This is also useful and should be kept.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yes you are right !
Still trying to understand the project :)

Copy link
Member

@wRAR wRAR left a comment

Choose a reason for hiding this comment

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

Thanks!

@Gallaecio Gallaecio merged commit cadb0dd into scrapy:master May 28, 2024
26 checks passed
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.

Fix overridable methods in MediaPipeline
3 participants