Use newly created version object

This commit is contained in:
bom 2023-02-22 10:58:11 +01:00
parent e2f562aa8c
commit 9250d366b9

View file

@ -66,7 +66,7 @@ def test_gradle(tmp_path):
# test
repo = VersionRepository(f)
version = repo.get_version(ReleaseType.SNAPSHOT)
version.create_release_version()
version = version.create_release_version()
repo.write_file(version.get_version_string())
# check
@ -84,7 +84,7 @@ def test_json(tmp_path):
# test
repo = VersionRepository(f)
version = repo.get_version(ReleaseType.SNAPSHOT)
version.create_release_version()
version = version.create_release_version()
repo.write_file(version.get_version_string())
# check
@ -102,7 +102,7 @@ def test_clojure(tmp_path):
# test
repo = VersionRepository(f)
version = repo.get_version(ReleaseType.SNAPSHOT)
version.create_release_version()
version = version.create_release_version()
repo.write_file(version.get_version_string())
# check
@ -120,7 +120,7 @@ def test_python(tmp_path):
# test
repo = VersionRepository(f)
version = repo.get_version(ReleaseType.SNAPSHOT)
version.create_release_version()
version = version.create_release_version()
repo.write_file(version.get_version_string())
# check