Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanarijit committed Jan 5, 2024
1 parent e309197 commit da0e68a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions fastapi_tests/app/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def get_snake(name=None) -> Optional[str]:


@ep.login_required
@ep.response_model(str)
async def get_snake_async(name=None) -> Optional[str]:
return name

Expand Down
3 changes: 0 additions & 3 deletions fastapi_tests/test_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@ def test_not_found_on_none():
url = base_url + "snakes/viper"
assert requests.get(url).status_code != 404

url = base_url + "snakes-fancy/viper"
assert requests.get(url).status_code != 404

url = base_url + "snakes"
assert requests.get(url).status_code == 404

Expand Down

0 comments on commit da0e68a

Please sign in to comment.