From 7b0eb4c78bd2229597e6b6e88701d4171760eaeb Mon Sep 17 00:00:00 2001 From: drewcassidy Date: Mon, 26 Apr 2021 19:53:28 -0700 Subject: [PATCH] Tests cleanup --- tests/test_cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 39d427b..1ee2a33 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -58,6 +58,7 @@ class TestCreation(unittest.TestCase): class TestTagging(unittest.TestCase): def test_tag_addition(self): + """Test adding tags to versions""" runner = CliRunner() location = 'CHANGELOG.md' @@ -84,6 +85,7 @@ class TestTagging(unittest.TestCase): self.assertIn('not found in changelog', result.output) def test_tag_deletion(self): + """Test deleting tags from versions""" runner = CliRunner() location = 'CHANGELOG.md' @@ -126,6 +128,7 @@ class TestTagging(unittest.TestCase): class TestRelease(unittest.TestCase): def test_increment(self): + """Test version incrementing on release""" runner = CliRunner() location = 'CHANGELOG.md' @@ -164,6 +167,7 @@ class TestRelease(unittest.TestCase): self.assertIn('2.0.0', result.output) def test_commit(self): + """Test committing and tagging releases""" runner = CliRunner() with runner.isolated_filesystem(): @@ -186,6 +190,5 @@ class TestRelease(unittest.TestCase): self.assertEqual(repo.tags[0].name, '1.0.0') - if __name__ == '__main__': unittest.main()