Fix CI: Fix mocks

This commit is contained in:
erik 2023-04-19 12:33:03 +02:00
parent c530628192
commit e424732a30
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -32,6 +32,10 @@ class MockGitApi():
def tag_annotated(self, annotation: str, message: str, count: int): def tag_annotated(self, annotation: str, message: str, count: int):
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 " "