From 18c82cab5f35194cc0037e940c1f873e04c3271f Mon Sep 17 00:00:00 2001 From: wordofglass Date: Tue, 22 Aug 2017 23:17:39 +0200 Subject: [PATCH] test_edit: Add a comment explaining why I didn't change the writing behaviour I was midway through writing a test when realizing that it's best the way it is... --- test/test_edit.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_edit.py b/test/test_edit.py index 2900d092a..9486e8485 100644 --- a/test/test_edit.py +++ b/test/test_edit.py @@ -217,6 +217,9 @@ class EditCommandTest(unittest.TestCase, TestHelper, EditMixin): ['a']) self.assertEqual(self.lib.items(u'id:1')[0].foo, 'bar') + # Even though a flexible attribute was written (which is not directly + # written to the tags), write should still be called since templates + # might use it. self.assertCounts(mock_write, write_call_count=1, title_starts_with=u't\u00eftle')