2 attempt to fix git Fatal: Could not read Username for "https://github.com"

This commit is contained in:
Churikova Tetiana 2018-04-18 15:40:57 +03:00 committed by Tetiana Churikova
parent 705127ed84
commit 352002695c
2 changed files with 2 additions and 3 deletions

View File

@ -282,8 +282,7 @@ class GithubPage(BasePageObject):
os.mkdir(repo_folder)
os.chdir(repo_folder)
self.local_repo_path = os.getcwd()
fork = 'https://%s:%s@github.com/%s/%s.git' % (test_data.config['DEV']['gh_login'],
fork = 'https://%s:%s@github.com/%s/%s.git' % (test_data.config['DEV']['gh_username'],
test_data.config['DEV']['gh_password'], username, repo_name)
logging.info(('Cloning from %s to %s' % (fork, self.local_repo_path)))
repo = git.Repo.clone_from(fork, self.local_repo_path)

View File

@ -1,3 +1,3 @@
[pytest]
norecursedirs = .git pages
addopts = -s -v --junitxml=results/result.xml --tb=short
addopts = -s -v --junitxml=results/result.xml --tb=short --env=local