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
5f6e3bfb
Commit
5f6e3bfb
authored
Nov 08, 2015
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test that uses the -F flag.
parent
fd659e5e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
test/test_list_format.py
test/test_list_format.py
+15
-3
No files found.
test/test_list_format.py
View file @
5f6e3bfb
...
@@ -14,11 +14,8 @@
...
@@ -14,11 +14,8 @@
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
unittest
from
collections
import
namedtuple
from
collections
import
namedtuple
from
freezegun
import
freeze_time
from
freezegun
import
freeze_time
from
six
import
u
from
test.command_testcase
import
CommandTest
from
test.command_testcase
import
CommandTest
from
test.facilities
import
load_file_to_todolist
from
test.facilities
import
load_file_to_todolist
...
@@ -232,3 +229,18 @@ just now | in 2 days | in a day |
...
@@ -232,3 +229,18 @@ just now | in 2 days | in a day |
| 6| %
| 6| %
"""
"""
self
.
assertEqual
(
self
.
output
,
result
)
self
.
assertEqual
(
self
.
output
,
result
)
def
test_list_format13
(
self
):
command
=
ListCommand
([
"-x"
,
"-F"
,
"|%I| %x %{(}p{)} %c %s %K"
],
self
.
todolist
,
self
.
out
,
self
.
error
)
command
.
execute
()
result
=
u"""| 1| (D) 2015-08-31 Bar @Context1 +Project2 due:2015-09-30 t:2015-09-29
| 2| (Z) 2015-11-03 Lorem ipsum dolorem sit amet. Red @fox +jumped over the and jar due:2015-11-05 lazy:bar t:2015-11-04
| 3| (C) 2015-07-12 Foo @Context2 Not@Context +Project1 Not+Project
| 4| (C) Baz @Context1 +Project1 key:value
| 5| Drink beer @ home ical:foobar id:1 p:2
| 6| x 2014-12-12 Completed but with date:2014-12-12
"""
self
.
assertEqual
(
self
.
output
,
result
)
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