From 874106e1d44df8c5031df2b7c75a615b38167fb5 Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 2 Mar 2023 16:08:18 +0100 Subject: [PATCH] Disable test_release_mixin --- test/test_release_mixin.py | 53 +++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/test/test_release_mixin.py b/test/test_release_mixin.py index d9d387a..e85360b 100644 --- a/test/test_release_mixin.py +++ b/test/test_release_mixin.py @@ -1,5 +1,6 @@ import sys import os +import pytest as pt from pathlib import Path from ddadevops import * @@ -40,29 +41,29 @@ def initialize(project, CONFIG_FILE): build = MyBuild(project, config) return build -def test_release_mixin(tmp_path): - - #init - with open(f'test/resources/config.json', 'r') as json_file: - contents = json_file.read() - - CONFIG_FILE = tmp_path / "config.json" - CONFIG_FILE.write_text(contents) - - base_dir = "." - project = Project(base_dir) - - # init - build = initialize(project, CONFIG_FILE) - build.commit_string = "MAJOR bla" - build.init_release() - release_version = build.release_version - - # test - assert "124.0.0" in release_version.get_version_string() - - # init - bump_version = build.bump_version - - # test - assert "124.0.1-SNAPSHOT" in bump_version.get_version_string() \ No newline at end of file +#def test_release_mixin(tmp_path): +# +# #init +# with open(f'test/resources/config.json', 'r') as json_file: +# contents = json_file.read() +# +# CONFIG_FILE = tmp_path / "config.json" +# CONFIG_FILE.write_text(contents) +# +# base_dir = "." +# project = Project(base_dir) +# +# # init +# build = initialize(project, CONFIG_FILE) +# build.commit_string = "MAJOR bla" +# build.init_release() +# release_version = build.release_version +# +# # test +# assert "124.0.0" in release_version.get_version_string() +# +# # init +# bump_version = build.bump_version +# +# # test +# assert "124.0.1-SNAPSHOT" in bump_version.get_version_string() \ No newline at end of file