From 4cdc3caa4b81ddf06af35ca00197caed45dc65ac Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Fri, 24 Dec 2021 10:34:18 +0100 Subject: Avoid double # at the beginning of help comments. --- tests/test_collection.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_collection.py b/tests/test_collection.py index 1400f57..99a5517 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -48,9 +48,10 @@ class testEntries(unittest.TestCase): entry_fname = os.path.join(self.basepath, new_entry.fname) with open(entry_fname) as fp: text = fp.read() - self.assertIn('quantity (integer): how many items are there', text) - self.assertIn('other (yaml):', text) - self.assertNotIn('position (string)', text) + self.assertIn('# quantity (integer): how many items are there', text) + self.assertIn('# other (yaml):', text) + self.assertNotIn('# position (string)', text) + self.assertNotIn('# # other (yaml)', text) written = ruamel.yaml.safe_load(text) self.assertIsInstance(written['quantity'], int) self.assertIsInstance(written['name'], str) -- cgit v1.2.3