test git config - att 1
This commit is contained in:
parent
654d0f497c
commit
4e10d330ee
|
@ -304,6 +304,8 @@ class GithubPage(BasePageObject):
|
|||
# logging.info(repo.git.push(repo_url))
|
||||
logging.info(repo.git.push('origin', 'master'))
|
||||
logging.info(repo.git.fetch('--all'))
|
||||
repo.git.config('user.email', test_data.config['DEV']['gh_login'])
|
||||
repo.git.config('user.name', test_data.config['DEV']['gh_username'])
|
||||
repo.git.checkout('-b', branch)
|
||||
file = open(os.path.join(self.local_repo_path, file_to_modify), 'w')
|
||||
file.write("Autotest change: %s \r \n" % test_data.date_time)
|
||||
|
|
|
@ -8,31 +8,31 @@ from tests import test_data
|
|||
@pytest.mark.sanity
|
||||
class TestLogin(BaseTestCase):
|
||||
|
||||
def test_deploy_new_contract(self):
|
||||
|
||||
# Waiting for deployed contract; test_data.issue created here
|
||||
self.github_org.create_new_bounty()
|
||||
self.github_org.get_deployed_contract()
|
||||
|
||||
# Navigate and check top bounty in "Open bounties"
|
||||
bounties_page = BountiesPage(self.driver_dev)
|
||||
bounties_page.get_bounties_page()
|
||||
titles = bounties_page.bounty_titles.find_elements()
|
||||
assert titles[0].text == test_data.issue['title']
|
||||
# def test_deploy_new_contract(self):
|
||||
#
|
||||
# # Waiting for deployed contract; test_data.issue created here
|
||||
# self.github_org.create_new_bounty()
|
||||
# self.github_org.get_deployed_contract()
|
||||
#
|
||||
# # Navigate and check top bounty in "Open bounties"
|
||||
# bounties_page = BountiesPage(self.driver_dev)
|
||||
# bounties_page.get_bounties_page()
|
||||
# titles = bounties_page.bounty_titles.find_elements()
|
||||
# assert titles[0].text == test_data.issue['title']
|
||||
|
||||
def test_new_claim(self):
|
||||
self.github_dev.create_pr_git('test_branch_%s' % self.github_dev.time_now)
|
||||
self.github_dev.open_pr_github('Fixes')
|
||||
|
||||
# check new claim in "Open bounties"
|
||||
bounties_page = BountiesPage(self.driver_dev)
|
||||
bounties_page.get_bounties_page()
|
||||
bounties_page.check_bounty_claims_amount(test_data.issue['title'], '1 open claim')
|
||||
|
||||
# check new claim in "Activity"
|
||||
activity_page = ActivityPage(self.driver_dev)
|
||||
activity_page.get_activity_page()
|
||||
activity_page.check_activity_is_presented('Submitted a claim for ', test_data.issue['title'])
|
||||
# self.github_dev.open_pr_github('Fixes')
|
||||
#
|
||||
# # check new claim in "Open bounties"
|
||||
# bounties_page = BountiesPage(self.driver_dev)
|
||||
# bounties_page.get_bounties_page()
|
||||
# bounties_page.check_bounty_claims_amount(test_data.issue['title'], '1 open claim')
|
||||
#
|
||||
# # check new claim in "Activity"
|
||||
# activity_page = ActivityPage(self.driver_dev)
|
||||
# activity_page.get_activity_page()
|
||||
# activity_page.check_activity_is_presented('Submitted a claim for ', test_data.issue['title'])
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue