Skip to content

Commit

Permalink
fix: TRANSIFEX_API_TOKEN name corrected (#6252)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarIthawi authored Jun 7, 2024
1 parent 289a86e commit 517b613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/release_project_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_transifex_project(self, project_slug):
"""
Get openedx-translations projects from Transifex.
"""
tx_api_token = self.environ.get('TX_API_TOKEN')
tx_api_token = self.environ.get('TRANSIFEX_API_TOKEN')
if not tx_api_token:
config = configparser.ConfigParser()
config.read(expanduser('~/.transifexrc'))
Expand Down
3 changes: 1 addition & 2 deletions scripts/tests/test_release_project_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from . import response_data
from ..release_project_sync import (
Command,
ORGANIZATION_SLUG,
)

HOST = transifex_api.HOST
Expand All @@ -28,7 +27,7 @@ def sync_command(**kwargs):
'resource': '',
'release_name': 'zebrawood',
'environ': {
'TX_API_TOKEN': 'dummy-token'
'TRANSIFEX_API_TOKEN': 'dummy-token'
}
}
command_args.update(kwargs)
Expand Down

0 comments on commit 517b613

Please sign in to comment.