Skip to content

Commit 0d5daee

Browse files
authored
Merge pull request #254 from Samweli/fix_failing_tests
Fix main branch failing tests
2 parents d80536a + 9e36fc4 commit 0d5daee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/mock/stac_api_auth_server_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def catalog():
2121
@app.route("/collections")
2222
def collections():
2323
headers = request.headers
24-
auth = headers.get("API_HEADER_KEY")
24+
auth = headers.get("APIHeaderKey")
2525
if auth == 'test_api_header_key':
2626
collections = DATA_PATH / "collections.json"
2727
with collections.open() as fl:

test/test_stac_api_client_auth.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_auth_collections_fetch(self):
5555
cfg_id = self.set_auth_method(
5656
"STAC_API_AUTH_TEST",
5757
"APIHeader",
58-
{"API_HEADER_KEY": "test_api_header_key"}
58+
{"APIHeaderKey": "test_api_header_key"}
5959
)
6060

6161
api_client = Client(
@@ -78,7 +78,7 @@ def test_auth_collections_fetch(self):
7878
cfg_id = self.set_auth_method(
7979
"STAC_API_AUTH_TEST",
8080
"APIHeader",
81-
{"API_HEADER_KEY": "unauthorized_api_header_key"}
81+
{"APIHeaderKey": "unauthorized_api_header_key"}
8282
)
8383

8484
api_client = Client(

0 commit comments

Comments
 (0)