Skip to content

Comments

Replace call_owm with call_api#9

Merged
nhoening merged 1 commit intomainfrom
generalize-testing
Jun 24, 2025
Merged

Replace call_owm with call_api#9
nhoening merged 1 commit intomainfrom
generalize-testing

Conversation

@devansh287
Copy link

@devansh287 devansh287 commented Jun 24, 2025

I make the tests call the general call_api function instead of the specific call_openweatherapi. I also generalized the name of the mock response to be called mock_api_response.

This is to address the issue #4.

Closes #4

I make the tests call the general `call_api` instead of the specific `call_openweatherapi`. I also generalized the name of the mock response to be called `mock_api_response`.

Signed-off-by: Devansh Sharma <46666171+devansh287@users.noreply.github.com>
Copy link

@nhoening nhoening left a comment

Choose a reason for hiding this comment

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

I'm happy that the GitHub Action stream is turning green again!

But I did find something I overlooked in the larger PR, which I don't think is elegant. Let's merge this one, and I'll add a new issue.

@nhoening nhoening merged commit 6e71f05 into main Jun 24, 2025
3 checks passed
@Flix6x Flix6x deleted the generalize-testing branch June 26, 2025 07:12
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.

Fix tests in test_get_forecasts.py

2 participants