home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor and extend tests.
[plomtask]
/
tests
/
todos.py
diff --git
a/tests/todos.py
b/tests/todos.py
index a5dafd1a8f2b17e58dbc4006f8d6ad54d7bc9b85..7fabfdb4bcb6c0761b40f7159583141e5f38ba09 100644
(file)
--- a/
tests/todos.py
+++ b/
tests/todos.py
@@
-24,10
+24,10
@@
class TestsWithDB(TestCaseWithDB):
def test_Todo_by_id(self) -> None:
"""Test creation and findability of Todos."""
process_unsaved = Process(None)
def test_Todo_by_id(self) -> None:
"""Test creation and findability of Todos."""
process_unsaved = Process(None)
- todo = Todo(None, process_unsaved, False, self.date1)
with self.assertRaises(NotFoundException):
with self.assertRaises(NotFoundException):
- todo
.save(self.db_conn
)
+ todo
= Todo(None, process_unsaved, False, self.date1
)
process_unsaved.save(self.db_conn)
process_unsaved.save(self.db_conn)
+ todo = Todo(None, process_unsaved, False, self.date1)
todo.save(self.db_conn)
self.assertEqual(Todo.by_id(self.db_conn, 1), todo)
with self.assertRaises(NotFoundException):
todo.save(self.db_conn)
self.assertEqual(Todo.by_id(self.db_conn, 1), todo)
with self.assertRaises(NotFoundException):