Skip to content

Commit fe3884a

Browse files
committed
Check private token length
1 parent 39da5ec commit fe3884a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def private_test_repo():
7373
# Fixture containing everything needed to access private github repo.
7474
# GIT2CPP_TEST_PRIVATE_TOKEN is the fine-grained Personal Access Token for private test repo.
7575
# If this is not available as an environment variable, tests that use this fixture are skipped.
76-
token = os.getenv('GIT2CPP_TEST_PRIVATE_TOKEN')
77-
if token is None:
76+
token = os.getenv("GIT2CPP_TEST_PRIVATE_TOKEN")
77+
if token is None or len(token) == 0:
7878
pytest.skip("No token for private test repo GIT2CPP_TEST_PRIVATE_TOKEN")
7979
repo_name = "git2cpp-test-private"
8080
org_name = "QuantStack"

0 commit comments

Comments
 (0)