Skip to content

Added unit tests for weather endpoint#230

Open
nivedithabinu wants to merge 1 commit into
thetechguardians:mainfrom
nivedithabinu:add-weather-endpoint
Open

Added unit tests for weather endpoint#230
nivedithabinu wants to merge 1 commit into
thetechguardians:mainfrom
nivedithabinu:add-weather-endpoint

Conversation

@nivedithabinu

Copy link
Copy Markdown

This PR closes issue #218.

Earlier, the backend system failed the following test cases:

  1. Missing required fields that return HTTP 400
  2. Missing API key that return HTTP 500
  3. Invalid location that return HTTP 404
  4. Internal server exceptions that return HTTP 500

Changes made: fixed the Flask test client and covered all the test cases in backend/test_alertsystem.py

Now, 5 test cases pass successfully in 0.33s.

Screenshot 2026-06-18 150127

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.

1 participant