From 92a005055e58dbf1f591e296bfe5f4979f09b3fa Mon Sep 17 00:00:00 2001 From: Tetiana Churikova Date: Wed, 18 Apr 2018 15:47:45 +0300 Subject: [PATCH 1/2] delete locam env --- test/end-to-end/pytest.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/end-to-end/pytest.ini b/test/end-to-end/pytest.ini index 2b5bd9c..1964f28 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 --env=local +addopts = -s -v --junitxml=results/result.xml --tb=short From 3469d6531d792c1ca918d588bb37717f9b52da75 Mon Sep 17 00:00:00 2001 From: Vitaliy Vlasov Date: Wed, 18 Apr 2018 18:11:14 +0300 Subject: [PATCH 2/2] Provide full url to git.push --- test/end-to-end/pages/thirdparty/github.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/end-to-end/pages/thirdparty/github.py b/test/end-to-end/pages/thirdparty/github.py index c9bb4cc..e44d9b7 100644 --- a/test/end-to-end/pages/thirdparty/github.py +++ b/test/end-to-end/pages/thirdparty/github.py @@ -297,7 +297,11 @@ class GithubPage(BasePageObject): repo = git.Repo(self.local_repo_path) logging.info(repo.git.status()) logging.info(repo.git.pull('upstream', 'master')) - logging.info(repo.git.push('origin', 'master')) + repo_url = 'https://%s:%s@github.com/%s/%s.git' % (test_data.config['DEV']['gh_username'], + test_data.config['DEV']['gh_password'], test_data.config['DEV']['gh_username'], test_data.config['ORG']['gh_repo_name']) + + logging.info('Pushing to %s' % repo_url) + logging.info(repo.git.push(repo_url)) logging.info(repo.git.fetch('--all')) repo.git.checkout('-b', branch) file = open(os.path.join(self.local_repo_path, file_to_modify), 'w')