Read about our upcoming Code of Conduct on this issue

Commit 3a53c7d5 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

push_basic: split in two

Now it's really basic again.
parent ad6511a452e2
Pipeline #13411 waiting for manual action with stages
in 26 seconds
......@@ -32,8 +32,10 @@ def prepare_simple_repo(proj, repo_path):
def test_push_basic(test_project, tmpdir):
"""
Push two changesets, one being a draft, confirm their arrival and phases
Often used as a smoke test.
"""
repo = prepare_simple_repo(test_project, tmpdir.join('repo1'))
prepare_simple_repo(test_project, tmpdir.join('repo1'))
# let's control what GitLab really sees
assert test_project.api_branch_titles() == {
'branch/default': 'Commit 0',
......@@ -45,6 +47,16 @@ def test_push_basic(test_project, tmpdir):
log = clone.hg('log', '-T', '{desc}:{phase}:{topic}\n')
assert log.splitlines() == ['Commit 1:draft:zetop', 'Commit 0:public:']
def test_push_webdriver(test_project, tmpdir):
"""
follow-up on push_basic. Not meaningful if the latter fails
"""
repo = prepare_simple_repo(test_project, tmpdir.join('repo1'))
url = test_project.owner_basic_auth_url
clone = LocalRepo.clone(url, tmpdir.join('repo2'))
repo.path.join('foo').write('foo2')
repo.hg('commit', '-Am', "Commit 2")
repo.hg('push', url)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment