From 160758942c8afebb8c4ee4ccea400f578ca7893e Mon Sep 17 00:00:00 2001 From: Derek DeJonghe Date: Mon, 15 Jun 2020 17:50:25 -0400 Subject: [PATCH] more tests --- semver/tests.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/semver/tests.py b/semver/tests.py index 523a5b6..c24b2c0 100644 --- a/semver/tests.py +++ b/semver/tests.py @@ -69,8 +69,13 @@ class TestGetVersion(unittest.TestCase): def test_branch_maven_pre_release(self): create_git_environment() subprocess.call(['git', 'checkout', '-b', 'minor/branch']) - branch = get_version.get_version(version_format='npm') + branch = get_version.get_version(version_format='maven') self.assertEqual(branch, "0.0.0-minor-branch-SNAPSHOT") + def test_branch_maven_bad_branch(self): + create_git_environment() + subprocess.call(['git', 'checkout', '-b', 'test/branch']) + branch = get_version.get_version(version_format='maven') + self.assertEqual(branch, "test/branch") def test_get_version_run(self): create_git_environment() val = subprocess.Popen(['python', '../get_version.py', '-d'], stdout=subprocess.PIPE,