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
894c8c79
Commit
894c8c79
authored
Jun 13, 2014
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless methods from TodoList.
parent
a33bc978
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
16 deletions
+0
-16
TodoList.py
TodoList.py
+0
-8
test/TodoListTest.py
test/TodoListTest.py
+0
-8
No files found.
TodoList.py
View file @
894c8c79
...
...
@@ -69,10 +69,6 @@ class TodoList(object):
new_text = todo.source() + '
' + p_string
todo.set_text(new_text)
def set_completed(self, p_number):
""" Marks the todo with the given number as complete. """
self.todo(p_number).set_completed()
def projects(self):
""" Returns a set of all projects in this list. """
result = set()
...
...
@@ -91,10 +87,6 @@ class TodoList(object):
return result
def set_priority(self, p_number, p_priority):
""" Sets the priority of the todo with the given number. """
self.todo(p_number).set_priority(p_priority)
def view(self, p_sorter, p_filter):
"""
Constructs a view of the todo list.
...
...
test/TodoListTest.py
View file @
894c8c79
...
...
@@ -107,14 +107,6 @@ class TodoListTester(unittest.TestCase):
self.assertEquals(todo, None)
def test_completed(self):
self.todolist.todo(1).set_completed()
today = datetime.date.today().isoformat()
self.assertTrue(self.todolist.todo(1).is_completed())
self.assertEquals(self.todolist.todo(1).source(),
\
"x " + today + " Foo @Context1 Not@Context +Project1 Not+Project")
def test_string(self):
# readlines() always ends a string with
\
n
, but join() in str(todolist)
# doesn'
t
necessarily
.
...
...
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