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

NZ parser: Remove usage of arrow (refactor) and add snapshot test #6694

Merged

Conversation

Jonmcd1
Copy link
Contributor

@Jonmcd1 Jonmcd1 commented Apr 24, 2024

Issue

#6135

Description

This PR removes usage of arrow in NZ.py and uses datetime instead.
It also adds a snapshot test case (test_NZ.py), which tests NZ.py on two different snapshots of each of the two URLs it uses. This test case can be run by running python -m unittest parsers/test/test_NZ.py from the root folder.

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.

@github-actions github-actions bot added parser python Pull requests that update Python code tests labels Apr 24, 2024
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.

LGTM!

Thanks for doing this and special thanks for adding the tests!

@VIKTORVAV99 VIKTORVAV99 enabled auto-merge (squash) May 4, 2024 19:40
@VIKTORVAV99 VIKTORVAV99 merged commit b89e651 into electricitymaps:master May 4, 2024
19 checks passed
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants