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

Revise testGetForecast to not make live API calls #7

Closed
wants to merge 1 commit into from
Closed

Revise testGetForecast to not make live API calls #7

wants to merge 1 commit into from

Conversation

settermjd
Copy link
Contributor

While attempting to run the tests, testGetForecast() consistently failed, with the exception's error message saying that the BOM API had detected the use of automation software during the request. Given that, and that it may well not be necessary to actually make a live request, this change updates the test to use a mock response with one of the fixture files instead. It also improves the performance of the test.

While attempting to run the tests, testGetForecast consistently failed,
with the exception's error message saying that the BOM API had detected
the use of automation software during the request. Given that, and that
it may well not be necessary to actually make a live request, this
change updates the test to use a mock response with one of the fixture
files instead. It also improves the performance of the test.
@kimpepper
Copy link
Member

This is outdated now as tests don't make live requests any more.

@kimpepper kimpepper closed this Jan 12, 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.

2 participants