|
|
|
@ -25,7 +25,7 @@ def initialize_with_object(project, CONFIG_FILE):
|
|
|
|
|
devops = Devops(STAGE, PROJECT_ROOT_PATH, MODULE, "release_test", BUILD_DIR_NAME)
|
|
|
|
|
release_config = ReleaseConfig(MAIN_BRANCH, CONFIG_FILE, devops)
|
|
|
|
|
build = MyBuild(project, release_config=release_config)
|
|
|
|
|
return build
|
|
|
|
|
return build
|
|
|
|
|
|
|
|
|
|
def test_release_mixin_git(tmp_path: Path, monkeypatch: pt.MonkeyPatch):
|
|
|
|
|
|
|
|
|
@ -34,7 +34,7 @@ def test_release_mixin_git(tmp_path: Path, monkeypatch: pt.MonkeyPatch):
|
|
|
|
|
th.copy_files(th.TEST_FILE_PATH, tmp_path)
|
|
|
|
|
th.TEST_FILE_PATH = tmp_path / th.TEST_FILE_NAME
|
|
|
|
|
|
|
|
|
|
change_test_dir(tmp_path, monkeypatch)
|
|
|
|
|
change_test_dir(tmp_path, monkeypatch)
|
|
|
|
|
project = Project(tmp_path)
|
|
|
|
|
|
|
|
|
|
git_api = GitApi()
|
|
|
|
@ -57,7 +57,7 @@ def test_release_mixin_environment(tmp_path: Path, monkeypatch: pt.MonkeyPatch):
|
|
|
|
|
th.copy_files(th.TEST_FILE_PATH, tmp_path)
|
|
|
|
|
th.TEST_FILE_PATH = tmp_path / th.TEST_FILE_NAME
|
|
|
|
|
|
|
|
|
|
change_test_dir(tmp_path, monkeypatch)
|
|
|
|
|
change_test_dir(tmp_path, monkeypatch)
|
|
|
|
|
project = Project(tmp_path)
|
|
|
|
|
|
|
|
|
|
git_api = GitApi()
|
|
|
|
@ -68,7 +68,7 @@ def test_release_mixin_environment(tmp_path: Path, monkeypatch: pt.MonkeyPatch):
|
|
|
|
|
|
|
|
|
|
environment_api = EnvironmentApi()
|
|
|
|
|
environment_api.set("DDADEVOPS_RELEASE_TYPE", "MAJOR")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build = initialize_with_object(project, th.TEST_FILE_PATH)
|
|
|
|
|
build.prepare_release()
|
|
|
|
|
release_version = build.prepare_release_service.release_repo.version_repository.get_version()
|
|
|
|
|