Skip to content

Commit

Permalink
fix(bitrisescript): Use proper config key for the access token
Browse files Browse the repository at this point in the history
  • Loading branch information
ahal committed Mar 20, 2024
1 parent 2510b99 commit 73e1619
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bitrisescript/src/bitrisescript/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def async_main(config, task):
client = None
try:
client = BitriseClient()
client.set_auth(config["bitrise"]["token"])
client.set_auth(config["bitrise"]["access_token"])
await client.set_app_prefix(app)
await asyncio.gather(*futures)
finally:
Expand Down
2 changes: 1 addition & 1 deletion bitrisescript/tests/test_bitrise.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async def test_bitrise_client_set_app_prefix(mocker, client, app, response, expe
)
async def test_bitrise_client_request(config, mocker, client, prefix, endpoint, method, kwargs, raises, expected_args, expected_kwargs):
expected_kwargs.setdefault("headers", {}).update(
{"Authorization": config["bitrise"]["token"]},
{"Authorization": config["bitrise"]["access_token"]},
)

m = mocker.patch.object(client._client, "request", return_value=Future())
Expand Down

0 comments on commit 73e1619

Please sign in to comment.