Skip to content

Commit

Permalink
Merge pull request #254 from Samweli/fix_failing_tests
Browse files Browse the repository at this point in the history
Fix main branch failing tests
  • Loading branch information
Samweli authored Apr 18, 2024
2 parents d80536a + 9e36fc4 commit 0d5daee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/mock/stac_api_auth_server_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def catalog():
@app.route("/collections")
def collections():
headers = request.headers
auth = headers.get("API_HEADER_KEY")
auth = headers.get("APIHeaderKey")
if auth == 'test_api_header_key':
collections = DATA_PATH / "collections.json"
with collections.open() as fl:
Expand Down
4 changes: 2 additions & 2 deletions test/test_stac_api_client_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_auth_collections_fetch(self):
cfg_id = self.set_auth_method(
"STAC_API_AUTH_TEST",
"APIHeader",
{"API_HEADER_KEY": "test_api_header_key"}
{"APIHeaderKey": "test_api_header_key"}
)

api_client = Client(
Expand All @@ -78,7 +78,7 @@ def test_auth_collections_fetch(self):
cfg_id = self.set_auth_method(
"STAC_API_AUTH_TEST",
"APIHeader",
{"API_HEADER_KEY": "unauthorized_api_header_key"}
{"APIHeaderKey": "unauthorized_api_header_key"}
)

api_client = Client(
Expand Down

0 comments on commit 0d5daee

Please sign in to comment.