From 4f0827d11b6737c7cf5f32572ea911561958d1a7 Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Wed, 18 Apr 2018 15:40:57 +0300 Subject: [PATCH] 2 attempt to fix git Fatal: Could not read Username for "https://github.com" --- test/end-to-end/pages/thirdparty/github.py | 3 +-- test/end-to-end/pytest.ini | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/end-to-end/pages/thirdparty/github.py b/test/end-to-end/pages/thirdparty/github.py index 4ad6c20..c9bb4cc 100644 --- a/test/end-to-end/pages/thirdparty/github.py +++ b/test/end-to-end/pages/thirdparty/github.py @@ -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) diff --git a/test/end-to-end/pytest.ini b/test/end-to-end/pytest.ini index 1964f28..2b5bd9c 100644 --- a/test/end-to-end/pytest.ini +++ b/test/end-to-end/pytest.ini @@ -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