File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 5151 env :
5252 GIT2CPP_TEST_PRIVATE_TOKEN : ${{ secrets.GIT2CPP_TEST_PRIVATE_TOKEN }}
5353 run : |
54- pytest -v
54+ pytest -v -rP
5555
5656 coverage :
5757 name : ' Test coverage'
Original file line number Diff line number Diff line change @@ -22,12 +22,18 @@ int user_credentials(
2222 if (username.empty ()) {
2323 username = prompt_input (" Username: " );
2424 }
25+
26+ std::cout << " XXXX username " << username.size () << " " << username.c_str () << " XXXX" << std::endl;
27+
2528 if (username.empty ()) {
2629 giterr_set_str (GIT_ERROR_HTTP, " No username specified" );
2730 return GIT_EAUTH;
2831 }
2932
3033 std::string password = prompt_input (" Password: " , false );
34+
35+ std::cout << " YYYY password " << password.size () << " " << " YYYY" << std::endl;
36+
3137 if (password.empty ()) {
3238 giterr_set_str (GIT_ERROR_HTTP, " No password specified" );
3339 return GIT_EAUTH;
Original file line number Diff line number Diff line change @@ -73,9 +73,10 @@ 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' )
76+ token = os .getenv (" GIT2CPP_TEST_PRIVATE_TOKEN" )
7777 if token is None :
7878 pytest .skip ("No token for private test repo GIT2CPP_TEST_PRIVATE_TOKEN" )
79+ assert token .startswith ("github_pat" )
7980 repo_name = "git2cpp-test-private"
8081 org_name = "QuantStack"
8182 return {
You can’t perform that action at this time.
0 commit comments