Fix CI: Fix mocks
This commit is contained in:
parent
c530628192
commit
e424732a30
2 changed files with 7 additions and 2 deletions
|
@ -35,7 +35,8 @@ class MockRelease():
|
||||||
|
|
||||||
def validate(self, main_branch):
|
def validate(self, main_branch):
|
||||||
self.validate_count += 1
|
self.validate_count += 1
|
||||||
return self.is_valid
|
return []
|
||||||
|
|
||||||
def is_valid(self, main_branch):
|
def is_valid(self, main_branch):
|
||||||
return True
|
return len(self.validate(main_branch)) < 1
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,10 @@ class MockGitApi():
|
||||||
self.tag_annotated_count += 1
|
self.tag_annotated_count += 1
|
||||||
return " "
|
return " "
|
||||||
|
|
||||||
|
def tag_annotated_second_last(self, annotation: str, message: str):
|
||||||
|
self.tag_annotated(annotation, message, 1)
|
||||||
|
return " "
|
||||||
|
|
||||||
def get_latest_tag(self):
|
def get_latest_tag(self):
|
||||||
return " "
|
return " "
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue