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

Move forecast csv test to test folder #209

Conversation

EmilyIsCoding
Copy link
Contributor

Pull Request

Description

Moves TestGenerateForecast to the test folder. Also changes it into a pytest with monkeypatch mock modules instead of unittest.

Fixes #207

How Has This Been Tested?

Ran test_forecast.py, test_forecast_no_ts.py before and after changes as well as test_generate_forecast.py.

Checklist:

  • My code follows OCF's coding style guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked my code and corrected any misspellings

data/pv/pv.netcdf Outdated Show resolved Hide resolved
data/pv/metadata.csv Outdated Show resolved Hide resolved
@@ -0,0 +1,55 @@
import os
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks this is great

@peterdudfield
Copy link
Contributor

This looks great, just remove a few of those extra files and then we can get it merged in. Thank you

@EmilyIsCoding
Copy link
Contributor Author

Done, thank you for calling out the extra files!

@peterdudfield peterdudfield merged commit 9085d97 into openclimatefix:main Oct 25, 2024
1 of 2 checks passed
@peterdudfield
Copy link
Contributor

Thank you @EmilyIsCoding
@all-contributors please add @EmilyIsCoding for test

Copy link
Contributor

@peterdudfield

I've put up a pull request to add @EmilyIsCoding! 🎉

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.

2 participants