Skip to content

Commit

Permalink
fix: Fixed header name
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Jun 11, 2024
1 parent 8ea9421 commit 2037995
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion terraso_backend/tests/auth/test_access_tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def token_client_query(client):
def _client_query(token, *args, **kwargs):
headers = {
"CONTENT_TYPE": "application/json",
"HTTP_AUTHORIZATION": f"Bearer {token}",
"AUTHORIZATION": f"Bearer {token}",
}
return graphql_query(*args, **kwargs, headers=headers, client=client)

Expand Down
4 changes: 2 additions & 2 deletions terraso_backend/tests/graphql/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def client_query(client, access_token):
def _client_query(*args, **kwargs):
headers = {
"CONTENT_TYPE": "application/json",
"HTTP_AUTHORIZATION": f"Bearer {access_token}",
"AUTHORIZATION": f"Bearer {access_token}",
}
return graphql_query(*args, **kwargs, headers=headers, client=client)

Expand All @@ -76,7 +76,7 @@ def expired_client_query(client, expired_access_token):
def _client_query(*args, **kwargs):
headers = {
"CONTENT_TYPE": "application/json",
"HTTP_AUTHORIZATION": f"Bearer {expired_access_token}",
"AUTHORIZATION": f"Bearer {expired_access_token}",
}
return graphql_query(*args, **kwargs, headers=headers, client=client)

Expand Down

0 comments on commit 2037995

Please sign in to comment.