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
b76b1dbd
Commit
b76b1dbd
authored
Nov 09, 2015
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #74 from mruwek/importance-test
Update tests for Importance
parents
f690dcdc
10b3b4c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
test/test_importance.py
test/test_importance.py
+13
-1
No files found.
test/test_importance.py
View file @
b76b1dbd
...
...
@@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
unittest
from
datetime
import
date
from
datetime
import
date
,
timedelta
from
test.topydo_testcase
import
TopydoTest
from
topydo.lib.Config
import
config
...
...
@@ -41,5 +41,17 @@ class ImportanceTest(TopydoTest):
todo
=
Todo
(
"(C) Foo "
+
config
().
tag_due
()
+
":"
+
today_str
)
self
.
assertEqual
(
importance
(
todo
),
8
)
def
test_importance5
(
self
):
due
=
date
.
today
()
+
timedelta
(
8
)
due_str
=
due
.
isoformat
()
todo
=
Todo
(
"(C) Foo "
+
config
().
tag_due
()
+
":"
+
due_str
)
self
.
assertEqual
(
importance
(
todo
),
4
)
def
test_importance6
(
self
):
due
=
date
.
today
()
+
timedelta
(
4
)
due_str
=
due
.
isoformat
()
todo
=
Todo
(
"(C) Foo "
+
config
().
tag_due
()
+
":"
+
due_str
)
self
.
assertEqual
(
importance
(
todo
),
5
)
if
__name__
==
'__main__'
:
unittest
.
main
()
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