Implement write_and_commit_bump() test

This commit is contained in:
erik 2023-03-03 14:54:48 +01:00
parent 15992d3500
commit 3f44148237

View file

@ -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
@ -47,5 +54,4 @@ 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
assert tag_and_push_release_service.git_api.push_count == 1