This commit is contained in:
Michael Jerger 2023-05-19 16:21:12 +02:00
parent f8b6a73b60
commit 816fcfdaa7

View file

@ -46,3 +46,18 @@ def test_sould_validate_release():
Version.from_str("1.3.1-SNAPSHOT"), Version.from_str("1.3.1-SNAPSHOT"),
) )
assert not sut.is_valid() assert not sut.is_valid()
def test_sould_validate_release():
sut = Release(
devops_config(
{
"release_type": "MINOR",
"release_current_branch": "main",
"release_primary_build_file": "project.clj",
"release_secondary_build_files": ["package.json"],
}
),
Version.from_str("1.3.1-SNAPSHOT"),
)
assert ["project.clj", "package.json"] == sut.build_files()