From d539c7331864273d0a6e149f3f8c3a009a06e6b6 Mon Sep 17 00:00:00 2001 From: erik Date: Mon, 20 Feb 2023 16:53:53 +0100 Subject: [PATCH] Fix test method and attribute calls --- test/test_version_class.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/test/test_version_class.py b/test/test_version_class.py index 906ddb5..abc7b35 100644 --- a/test/test_version_class.py +++ b/test/test_version_class.py @@ -24,30 +24,30 @@ from release_type import ReleaseType def test_version(): version = Version([1, 2, 3], False) - version.increment(ReleaseLevel.SNAPSHOT) + version.increment(ReleaseType.SNAPSHOT) assert version.get_version_string() == "1.2.3-SNAPSHOT" - assert version.version == [1, 2, 3] + assert version.version_list == [1, 2, 3] assert version.is_snapshot - version.increment(ReleaseLevel.BUMP) + version.increment(ReleaseType.BUMP) assert version.get_version_string() == "1.2.4-SNAPSHOT" - assert version.version == [1, 2, 4] + assert version.version_list == [1, 2, 4] assert not version.is_snapshot - version.increment(ReleaseLevel.PATCH) + version.increment(ReleaseType.PATCH) assert version.get_version_string() == "1.2.5" - assert version.version == [1, 2, 4] + assert version.version_list == [1, 2, 5] assert not version.is_snapshot - version.increment(ReleaseLevel.SNAPSHOT) + version.increment(ReleaseType.SNAPSHOT) assert version.get_version_string() == "1.2.5-SNAPSHOT" - version.increment(ReleaseLevel.SNAPSHOT) + version.increment(ReleaseType.SNAPSHOT) assert version.get_version_string() == "1.2.5-SNAPSHOT" - version.increment(ReleaseLevel.MINOR) + version.increment(ReleaseType.MINOR) assert version.get_version_string() == "1.3.0" - version.increment(ReleaseLevel.MAJOR) + version.increment(ReleaseType.MAJOR) assert version.get_version_string() == "2.0.0" @@ -62,7 +62,7 @@ def test_gradle(tmp_path): # test version_repo = VersionRepository.get(f) - version = Version.create_release_version(ReleaseLevel.SNAPSHOT) + version = Version.create_release_version(ReleaseType.SNAPSHOT) version_repo.write_file(version.get_version_string) # check