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

fix/tests(parsers, DO): adopt use_proxy decorator that makes things work again, and add snapshot test #7741

Merged
merged 8 commits into from
Jan 23, 2025

Conversation

consideRatio
Copy link
Contributor

@consideRatio consideRatio commented Jan 14, 2025

Issue

Description

Double check

  • I have tested my parser changes locally with poetry run test_parser "zone_key"
  • I have run pnpx prettier@2 --write . and poetry run format in the top level directory to format my changes.

consideRatio and others added 4 commits January 14, 2025 22:31
Changes:

- Makes calling `fetch_production()` without args or kwargs not run into
  issues stemming from `zone_key` being explicitly passed as None.
- Adds a comment on what webshare.io subscription is useful for use by
  this project.
- Re-configures session.proxies back to what it was in a way that I
  think now will work, while previously I think we just stored a
  reference to the proxies object that we then also modified.

  This likely won't impact anyone.
- Adjusted the code for readability, which is an opinionated matter of
  course.
@github-actions github-actions bot added parser python Pull requests that update Python code tests zone config Pull request or issue for zone configurations labels Jan 14, 2025
@consideRatio consideRatio changed the title fix(parsers, DO): adopt use_proxy decorator that makes things work again fix/tests(parsers, DO): adopt use_proxy decorator that makes things work again, and add snapshot test Jan 14, 2025
Copy link
Member

@VIKTORVAV99 VIKTORVAV99 left a comment

Choose a reason for hiding this comment

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

Sorry for the delayed review, had lots to do last week!

But this looks good to me and seems to work as expected!

@VIKTORVAV99 VIKTORVAV99 enabled auto-merge (squash) January 23, 2025 08:49
@VIKTORVAV99 VIKTORVAV99 disabled auto-merge January 23, 2025 08:56
@VIKTORVAV99 VIKTORVAV99 enabled auto-merge (squash) January 23, 2025 09:00
@VIKTORVAV99 VIKTORVAV99 merged commit 15aece8 into electricitymaps:master Jan 23, 2025
21 checks passed
@consideRatio
Copy link
Contributor Author

No worries @VIKTORVAV99 i recognize your situation, thank you for taking time to review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parser python Pull requests that update Python code tests zone config Pull request or issue for zone configurations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants