Commit 9874d740 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

More thorough assertions for project removal tests

Closes #9
parent 86938abb4157
Pipeline #6506 passed with stages
in 21 minutes and 18 seconds
......@@ -43,12 +43,10 @@ def inner_webdriver_destroy(test_project):
test_project.webdriver_destroy()
heptapod = test_project.heptapod
exit_code = heptapod.execute(
['ls', '-d ', test_project.fs_common_path + '.hg'])[0]
assert exit_code == 2
exit_code = heptapod.execute(
['ls', '-d ', test_project.fs_common_path + '.wiki.hg'])[0]
assert exit_code == 2
for ext in ('.hg', '.wiki.hg', '.git', '.wiki.git'):
path = test_project.fs_common_path + ext
exit_code = heptapod.execute(['ls', '-d ', path])[0]
assert exit_code == 2, "%r should have been removed" % path
def test_webdriver_create(heptapod, tmpdir):
......
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