Implement unittests

This commit is contained in:
2023-07-02 18:29:32 -04:00
parent 92eb0cff39
commit d1e2d77a29
12 changed files with 393 additions and 271 deletions

View File

@ -44,16 +44,17 @@ class SemVer:
self._scm: SCM = scm
def _version_repo(self) -> None:
def _version_repo(self) -> str:
"""
Use bump_version to update the repo version
:return: The new version
"""
version = self._scm.get_tag_version()
if not self._version_type:
raise NoMergeFoundException()
logger.debug(f"Running bumpversion of type: {self._version_type.name}")
self._bump_version(version, self._version_type)
return self._bump_version(version, self._version_type)
def _process_config_string(self, cfg_string, new_version, version):
return cfg_string.replace("{new_version}", new_version).replace(