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

Always use tmp path for clobber tests. #3043

Merged
merged 2 commits into from
Nov 14, 2023
Merged

Conversation

jdangerx
Copy link
Member

The unit tests running with --live-dbs actually clobbered the XBRL databases - so we'd generate them, run ETL based on them, and then clobber them in nightly build before we got to actually upload to GCS.

Copy link

codecov bot commented Nov 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6596401) 88.7% compared to head (3c6c93f) 88.7%.
Report is 5 commits behind head on dev.

Additional details and impacted files
@@          Coverage Diff          @@
##             dev   #3043   +/-   ##
=====================================
  Coverage   88.7%   88.7%           
=====================================
  Files         90      90           
  Lines      10994   10994           
=====================================
  Hits        9758    9758           
  Misses      1236    1236           

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

@@ -122,7 +130,7 @@ def test_xbrl2sqlite(settings, forms, mocker):
form,
mock_datastore,
output_path=PudlPaths().output_dir,
sql_path=PudlPaths().output_dir / f"ferc{form.value}_xbrl.sqlite",
sql_path=tmp_path / f"ferc{form.value}_xbrl.sqlite",
Copy link
Member

Choose a reason for hiding this comment

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

Why do you need to mock PudlPaths if you're using tmp_path here?

@zaneselvans zaneselvans merged commit 6cb0793 into dev Nov 14, 2023
11 checks passed
@jdangerx jdangerx deleted the fix-xbrl-clobber-live-dbs-test branch January 2, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants