Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
2c321e68
Commit
2c321e68
authored
Jul 30, 2017
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove usage of global variable
parent
66636fbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
test/test_do_command.py
test/test_do_command.py
+4
-5
No files found.
test/test_do_command.py
View file @
2c321e68
...
...
@@ -116,18 +116,17 @@ class DoCommandTest(CommandTest):
self
.
assertFalse
(
self
.
todolist
.
todo
(
2
).
is_completed
())
def
test_do_subtasks_force2
(
self
):
prompt_shown
=
False
def
prompt
(
p_prompt
):
global
prompt_shown
prompt_shown
=
True
prompt
.
prompt_shown
=
True
prompt
.
prompt_shown
=
False
command
=
DoCommand
([
"--force"
,
"1"
],
self
.
todolist
,
self
.
out
,
self
.
error
,
prompt
)
command
.
execute
()
command
.
execute_post_archive_actions
()
self
.
assertFalse
(
prompt_shown
)
self
.
assertFalse
(
prompt
.
prompt
_shown
)
self
.
assertEqual
(
self
.
errors
,
""
)
self
.
assertFalse
(
self
.
todolist
.
todo
(
2
).
is_completed
())
...
...
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