Skip to content
Snippets Groups Projects
Commit fb3665bb authored by Georges Racinet's avatar Georges Racinet
Browse files

pull_force_topic: removed duplicated test_force_draft

The one from test_pull_force_topic was identical, except it had
an additional assertion (pull-force-topic return code)
parent 0c2c54c5
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,6 @@
import pytest
from mercurial import (
error,
node,
)
from heptapod.testhelpers import (
LocalRepoWrapper,
......@@ -32,27 +31,6 @@
return wrapper, ctx
def test_force_draft(tmpdir):
"""Case where the remote changesets are public."""
main_path = tmpdir.join('main')
fork_path = tmpdir.join('fork')
main, base_ctx = make_main_repo(main_path)
fork = LocalRepoWrapper.init(fork_path)
fork.command('pull', str(main_path), rev=[base_ctx.hex()])
fork_node = fork.write_commit('bar', content='bar1', message="in fork 1",
parent=base_ctx.node())
fork.set_phase('public', ['.'])
main.command('pull-force-topic', 'zetop',
source=str(fork_path), rev=[node.hex(fork_node)])
# TODO better lookup ?
imported = main.repo['tip']
assert imported.topic() == 'zetop' # implied draft
assert imported.description() == 'in fork 1'
def test_change_topic_sanity(tmpdir):
wrapper, base_ctx = make_main_repo(tmpdir)
repo = wrapper.repo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment