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

20
semver/scm/mock.py Normal file
View File

@ -0,0 +1,20 @@
from typing import Union
from semver.scm import SCM
class MockSCM(SCM):
def get_tag_version(self) -> str:
return "1.0.0"
def get_branch(self) -> str:
return "main"
def get_merge_branch(self) -> Union[str, None]:
return "main"
def commit_and_push(self, branch: str) -> None:
pass
def tag_version(self, version: str) -> None:
pass