X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/static/gitweb.js?a=blobdiff_plain;f=tests%2Ftodos.py;h=7632f39cf3b75674036452b609c7e90b3f379e34;hb=c021152e6566c8374170de916c69d6b5c816cd54;hp=56aaf48ccc1faa917b23fd89443678efa049c396;hpb=02aa60b59cea2c0401efd785f3bb5d06aec7bf4d;p=plomtask diff --git a/tests/todos.py b/tests/todos.py index 56aaf48..7632f39 100644 --- a/tests/todos.py +++ b/tests/todos.py @@ -206,6 +206,7 @@ class TestsWithDB(TestCaseWithDB, TestCaseSansDB): """Test removal.""" todo_1 = Todo(None, self.proc, False, self.date1) todo_1.save(self.db_conn) + assert todo_1.id_ is not None todo_0 = Todo(None, self.proc, False, self.date1) todo_0.save(self.db_conn) todo_0.add_child(todo_1) @@ -233,6 +234,7 @@ class TestsWithDB(TestCaseWithDB, TestCaseSansDB): todo_1.comment = 'foo' todo_1.effort = -0.1 todo_1.save(self.db_conn) + assert todo_1.id_ is not None Todo.by_id(self.db_conn, todo_1.id_) todo_1.comment = '' todo_1_id = todo_1.id_