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):
self.validate_count += 1
return self.is_valid
return []
def is_valid(self, main_branch):
return True
return len(self.validate(main_branch)) < 1

View file

@ -33,6 +33,10 @@ class MockGitApi():
self.tag_annotated_count += 1
return " "
def tag_annotated_second_last(self, annotation: str, message: str):
self.tag_annotated(annotation, message, 1)
return " "
def get_latest_tag(self):
return " "