Implement write_and_commit_bump() test
This commit is contained in:
parent
15992d3500
commit
3f44148237
1 changed files with 9 additions and 3 deletions
|
@ -36,7 +36,14 @@ def test_prepare_release_service(): # todo: maybe use mocks for service api test
|
|||
assert prepare_release_service.git_api.add_file_count == 1
|
||||
assert prepare_release_service.git_api.commit_count == 1
|
||||
|
||||
prepare_release_service.write_and_commit_release() #todo: add asserts
|
||||
# init
|
||||
prepare_release_service.write_and_commit_bump() #todo: add asserts
|
||||
|
||||
# test
|
||||
assert prepare_release_service.release.validate_count == 2
|
||||
assert prepare_release_service.release_repo.version_repository.write_file_count == 2
|
||||
assert prepare_release_service.git_api.add_file_count == 2
|
||||
assert prepare_release_service.git_api.commit_count == 2
|
||||
|
||||
def test_tag_and_push_release_service():
|
||||
# init
|
||||
|
@ -48,4 +55,3 @@ def test_tag_and_push_release_service():
|
|||
#test
|
||||
assert tag_and_push_release_service.git_api.tag_annotated_count == 1
|
||||
assert tag_and_push_release_service.git_api.push_count == 1
|
||||
|
||||
|
|
Loading…
Reference in a new issue