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
62afca6b
Commit
62afca6b
authored
Feb 07, 2015
by
Jacek Sowiński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for 'pri' with multiple todos.
parent
cd587fd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
test/PriorityCommandTest.py
test/PriorityCommandTest.py
+8
-0
No files found.
test/PriorityCommandTest.py
View file @
62afca6b
...
...
@@ -62,6 +62,14 @@ class PriorityCommandTest(CommandTest.CommandTest):
self
.
assertEquals
(
self
.
output
,
"(A) Foo
\
n
"
)
self
.
assertEquals
(
self
.
errors
,
""
)
def
test_set_prio5
(
self
):
command
=
PriorityCommand
([
"Foo"
,
"2"
,
"C"
],
self
.
todolist
,
self
.
out
,
self
.
error
)
command
.
execute
()
self
.
assertTrue
(
self
.
todolist
.
is_dirty
())
self
.
assertEquals
(
self
.
output
,
"Priority changed from A to C
\
n
(C) Foo
\
n
Priority set to C.
\
n
(C) Bar
\
n
"
)
self
.
assertEquals
(
self
.
errors
,
""
)
def
test_invalid1
(
self
):
command
=
PriorityCommand
([
"99"
,
"A"
],
self
.
todolist
,
self
.
out
,
self
.
error
)
command
.
execute
()
...
...
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