|
|
|
@ -7,7 +7,7 @@ from src.main.python.ddadevops.domain import (
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_sould_validate_build_file():
|
|
|
|
|
def test_should_validate_build_file():
|
|
|
|
|
sut = BuildFile(Path("./project.clj"), "content")
|
|
|
|
|
assert sut.is_valid()
|
|
|
|
|
|
|
|
|
@ -18,7 +18,7 @@ def test_sould_validate_build_file():
|
|
|
|
|
assert not sut.is_valid()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_sould_calculate_build_type():
|
|
|
|
|
def test_should_calculate_build_type():
|
|
|
|
|
sut = BuildFile(Path("./project.clj"), "content")
|
|
|
|
|
assert sut.build_file_type() == BuildFileType.JAVA_CLOJURE
|
|
|
|
|
|
|
|
|
@ -29,7 +29,7 @@ def test_sould_calculate_build_type():
|
|
|
|
|
assert sut.build_file_type() == BuildFileType.JS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_sould_parse_and_set_js():
|
|
|
|
|
def test_should_parse_and_set_js():
|
|
|
|
|
sut = BuildFile(
|
|
|
|
|
Path("./package.json"),
|
|
|
|
|
"""
|
|
|
|
@ -77,7 +77,7 @@ def test_sould_parse_and_set_js():
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_sould_parse_and_set_version_for_gradle():
|
|
|
|
|
def test_should_parse_and_set_version_for_gradle():
|
|
|
|
|
sut = BuildFile(
|
|
|
|
|
Path("./build.gradle"),
|
|
|
|
|
"""
|
|
|
|
@ -97,7 +97,7 @@ version = "1.1.5-SNAPSHOT"
|
|
|
|
|
assert '\nversion = "2.0.0"\n' == sut.content
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_sould_parse_and_set_version_for_py():
|
|
|
|
|
def test_should_parse_and_set_version_for_py():
|
|
|
|
|
sut = BuildFile(
|
|
|
|
|
Path("./build.py"),
|
|
|
|
|
"""
|
|
|
|
@ -143,7 +143,7 @@ version = "1.1.5-SNAPSHOT"
|
|
|
|
|
assert '\nversion = "2.0.0"\n' == sut.content
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_sould_parse_and_set_version_for_clj():
|
|
|
|
|
def test_should_parse_and_set_version_for_clj():
|
|
|
|
|
sut = BuildFile(
|
|
|
|
|
Path("./project.clj"),
|
|
|
|
|
"""
|
|
|
|
|