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

Refactor spidermon.utils.zyte.Client to use crawler settings #411

Merged
merged 3 commits into from
Aug 11, 2023

Conversation

VMRuiz
Copy link
Collaborator

@VMRuiz VMRuiz commented Aug 11, 2023

Fixes #410

@VMRuiz
Copy link
Collaborator Author

VMRuiz commented Aug 11, 2023

I still need to test it to make sure it works properly

@codecov
Copy link

codecov bot commented Aug 11, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (aa76291) 78.51% compared to head (97bb2f7) 78.52%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #411   +/-   ##
=======================================
  Coverage   78.51%   78.52%           
=======================================
  Files          73       73           
  Lines        3151     3152    +1     
  Branches      528      528           
=======================================
+ Hits         2474     2475    +1     
  Misses        600      600           
  Partials       77       77           
Files Changed Coverage Δ
spidermon/contrib/scrapy/extensions.py 85.71% <100.00%> (+0.13%) ⬆️
spidermon/contrib/scrapy/monitors/monitors.py 96.68% <100.00%> (+0.01%) ⬆️
spidermon/utils/zyte.py 91.83% <100.00%> (-0.17%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@VMRuiz
Copy link
Collaborator Author

VMRuiz commented Aug 11, 2023

Tests with unit tests and SC real jobs, it works as expected

@VMRuiz VMRuiz merged commit a75cf97 into scrapinghub:master Aug 11, 2023
7 checks passed
@VMRuiz VMRuiz deleted the fix-zyte-settings branch August 11, 2023 12:25
VMRuiz added a commit that referenced this pull request Aug 31, 2023
* Refactor spidermon.utils.zyte.Client to use crawler settings

* Update monitors to instantiate Client objects

* Fix tests
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.

spidermon.utils.zyte.client uses only project setting module for settings.
2 participants