Skip to content

Commit

Permalink
Fix tests: /info_no_strict, no token, returns 200
Browse files Browse the repository at this point in the history
  • Loading branch information
giosava94 committed Dec 5, 2023
1 parent c0c4891 commit 1c83e3e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flaat/flask/flask_test_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ def case_FakeToken(self, path):
headers = {"Authorization": f"Bearer fake_token"}
return path, headers

@parametrize("path", {"/info_no_strict"})
def case_NoBearer(self, path):
headers = None
return path, headers


class Unauthorized:
"""Request should not pass."""
Expand All @@ -35,7 +40,7 @@ def case_FakeToken(self, path):
headers = {"Authorization": f"Bearer fake_token"}
return path, headers

@parametrize("path", example_paths)
@parametrize("path", example_paths - {"/info_no_strict"})
def case_NoBearer(self, path):
headers = None
return path, headers

0 comments on commit 1c83e3e

Please sign in to comment.