diff options
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, ) |
