aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/unit/test_github.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-01-01 14:22:50 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-01-01 14:57:04 +0100
commitbc4cf3160f653fd5fbc368a42128945379291208 (patch)
tree1988dfff6de688e3308abc0336d822f4affc9b86 /test/unit/test_github.py
parentworkflows/ci: upgrade an action (diff)
downloadcgitize-bc4cf3160f653fd5fbc368a42128945379291208.tar.gz
cgitize-bc4cf3160f653fd5fbc368a42128945379291208.zip
workflows/ci: use GitHub token for unit tests
For some reason, unit tests started failing during CI runs.
Diffstat (limited to 'test/unit/test_github.py')
-rw-r--r--test/unit/test_github.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/test_github.py b/test/unit/test_github.py
index be1daf6..1095c98 100644
--- a/test/unit/test_github.py
+++ b/test/unit/test_github.py
@@ -3,6 +3,7 @@
# For details, see https://github.com/egor-tensin/cgitize.
# Distributed under the MIT License.
+import os
import unittest
from github import Github, GithubException
@@ -10,7 +11,7 @@ from github import Github, GithubException
class GitHubTests(unittest.TestCase):
def setUp(self):
- self.github = Github()
+ self.github = Github(os.environ.get('CGITIZE_GITHUB_TOKEN'))
def test_nonexistent_repo(self):
with self.assertRaises(GithubException):