Skip to content

Commit 3e94aaf

Browse files
committed
enhance test for validate_github_token so testing with fine-grained GitHub token can also be done
1 parent 4ab0b76 commit 3e94aaf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/framework/github.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,11 @@ def test_validate_github_token(self):
583583
if token_old_format:
584584
self.assertTrue(gh.validate_github_token(token_old_format, GITHUB_TEST_ACCOUNT))
585585

586+
# if a fine-grained token is available, test with that too
587+
finegrained_token = os.getenv('TEST_GITHUB_TOKEN_FINEGRAINED')
588+
if finegrained_token:
589+
self.assertTrue(gh.validate_github_token(finegrained_token, GITHUB_TEST_ACCOUNT))
590+
586591
def test_github_find_easybuild_easyconfig(self):
587592
"""Test for find_easybuild_easyconfig function"""
588593
if self.skip_github_tests:

0 commit comments

Comments
 (0)