diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-10 11:35:32 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-10 11:35:32 +0200 |
| commit | bef5795428c8aa6477d67e01f0f84f5a02f737c1 (patch) | |
| tree | 0e9c64576f8ee8ec619e526ad27f717e8d0b5d90 /test | |
| parent | bitbucket: switch from app passwords (deprecated) to API tokens (diff) | |
| download | cgitize-bef5795428c8aa6477d67e01f0f84f5a02f737c1.tar.gz cgitize-bef5795428c8aa6477d67e01f0f84f5a02f737c1.zip | |
bitbucket: rename "username" to "email"
It's Atlassian emails instead of usernames now.
Diffstat (limited to 'test')
| -rw-r--r-- | test/set_credentials.sh | 4 | ||||
| -rw-r--r-- | test/unit/test_bitbucket.py | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/test/set_credentials.sh b/test/set_credentials.sh index 1d8fd87..ec6e45a 100644 --- a/test/set_credentials.sh +++ b/test/set_credentials.sh @@ -1,3 +1,5 @@ +IFS= read -r -s -p 'Bitbucket email: ' CGITIZE_BITBUCKET_EMAIL +echo IFS= read -r -s -p 'Bitbucket token: ' CGITIZE_BITBUCKET_TOKEN echo IFS= read -r -s -p 'GitHub token: ' CGITIZE_GITHUB_TOKEN @@ -5,7 +7,7 @@ echo IFS= read -r -s -p 'GitLab token: ' CGITIZE_GITLAB_TOKEN echo -export CGITIZE_BITBUCKET_USERNAME=cgitize-test +export CGITIZE_BITBUCKET_EMAIL export CGITIZE_BITBUCKET_TOKEN export CGITIZE_GITHUB_USERNAME=cgitize-test export CGITIZE_GITHUB_TOKEN diff --git a/test/unit/test_bitbucket.py b/test/unit/test_bitbucket.py index 26e86bf..e81cdef 100644 --- a/test/unit/test_bitbucket.py +++ b/test/unit/test_bitbucket.py @@ -13,7 +13,7 @@ from requests.exceptions import HTTPError class BitbucketTests(unittest.TestCase): def setUp(self): self.bitbucket = Cloud( - username=os.environ.get('CGITIZE_BITBUCKET_USERNAME'), + username=os.environ.get('CGITIZE_BITBUCKET_EMAIL'), password=os.environ.get('CGITIZE_BITBUCKET_TOKEN'), cloud=True, ) |
