Fixed broken header in new changelogs

This commit is contained in:
2021-05-09 19:39:48 -07:00
parent 38560702f4
commit d35b7fee83
3 changed files with 14 additions and 1 deletions

View File

@ -28,6 +28,12 @@ class TestCreation(unittest.TestCase):
self.assertTrue(os.path.exists(os.path.abspath(location)), 'yaclog init did not create a file')
self.assertIn(location, result.output, "yaclog init did not echo the file's correct location")
with open(location, 'r') as fp:
self.assertEqual('# Changelog\n', fp.readline())
self.assertEqual('\n', fp.readline())
self.assertEqual('All notable changes to this project will be documented in this file',
fp.readline().rstrip())
with open(location, 'w') as fp:
fp.write(err_str)