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(test): test_output's monkeypatching of pd.read_csv #172

Merged
merged 5 commits into from
Aug 22, 2024

Conversation

aaraney
Copy link
Member

@aaraney aaraney commented Aug 22, 2024

fixes #166

See #166 for an explanation.

@aaraney aaraney requested a review from hellkite500 August 22, 2024 13:42
@aaraney aaraney self-assigned this Aug 22, 2024
@aaraney aaraney added bug Something isn't working ngen.cal Related to ngen.cal package labels Aug 22, 2024
def file_not_found(*args, **kwargs):
raise FileNotFoundError

monkeypatch.setattr(pd, "read_csv", file_not_found)
Copy link
Member

Choose a reason for hiding this comment

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

Killing my lambda 🤣

@hellkite500 hellkite500 merged commit f977915 into NOAA-OWP:master Aug 22, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ngen.cal Related to ngen.cal package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Monkey patching in the tests does not seem to be working correctly
2 participants