From 014dc3d987f2673af3b4cb35bce6dc4b8ada34a5 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 21 Apr 2012 06:56:30 +0900 Subject: [PATCH] fix unit test --- tests/test_models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_models.py b/tests/test_models.py index 87a038e6e..01e69c13d 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -103,6 +103,8 @@ def test_templates(): assert c.ord == 0 stripHTML(c.q()) == "2" # it shouldn't be possible to orphan notes by removing templates + t = mm.newTemplate(m) + mm.addTemplate(m, t) assert not d.models.remTemplate(m, m['tmpls'][0]) def test_text():