Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod-tests
Commits
89573da172cc
Commit
9874d740
authored
Jun 02, 2020
by
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
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
tests/test_projects.py
View file @
89573da1
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment