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: Use a static time period in test_coops_data_products_w_date_input() #170

Closed
wants to merge 1 commit into from

Conversation

pmav99
Copy link
Member

@pmav99 pmav99 commented Sep 26, 2024

No description provided.

@pmav99 pmav99 self-assigned this Sep 26, 2024
@pmav99 pmav99 marked this pull request as ready for review September 26, 2024 08:00
def test_coops_data_products_w_date_input(days_before_end, station_id, product):
# 2024-02-05 was the date when the test was added.
# This ensures that the test can continue to run in the future
end_date = pd.Timestamp("2024-02-05", tz="UTC")
Copy link
Contributor

Choose a reason for hiding this comment

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

@pmav99 I think at the time I wrote these, there were some limitations on how much back in time the data is available for certain products, so I decided to always use now and then go back a much as data is available, or something close to that.

Copy link
Member Author

Choose a reason for hiding this comment

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

I see. In that case I think we need to either make the test more lenient e.g. to skip or xfail if the station has no data or use a cassette.

I will close the PR

@pmav99 pmav99 closed this Sep 26, 2024
@SorooshMani-NOAA SorooshMani-NOAA self-assigned this Oct 9, 2024
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.

Broken: tests/coops_test.py::test_coops_data_products_w_date_input[7-cb1101-currents]
2 participants