action_utils.tests.test_tag_commit module

Tests for the action_utils.tag_commit module

class action_utils.tests.test_tag_commit.TestTagCurrentCommit

Bases: object

Tests for the tag_current_commit function

test_bump_with_date(git_repo)

Test successful version bump when requested to add current date

test_duplicate_version(git_repo)

Test handling of error produced when trying to lay down a tag that already exists

test_invalid_bump(git_repo)

Test handling of invalid version bump - exhaustive cases are handled in tests for common.VersionTag

test_major_bump(git_repo)

Test successful major version bump when given valid new version

test_minor_bump(git_repo)

Test successful minor version bump when given valid new version

test_no_current_tag_bad_version(no_tag_repo)

Test that when a repo doesn’t have any tags and a version > 1 is given, InvalidVersion is raised

test_no_current_tag_major(no_tag_repo)

Test successful major version bump when repo doesn’t have any tags that exist

test_no_current_tag_minor(no_tag_repo)

Test successful minor version bump when repo doesn’t have any tags that exist

test_no_current_tag_patch(no_tag_repo)

Test successful patch version bump when repo doesn’t have any tags that exist

test_no_current_tag_release(no_tag_repo)

Test successful laying down of 0.0.0-1 when repo doesn’t have any tags that exist

test_patch_bump(git_repo)

Test successful patch version bump when given valid new version

test_release_bump(git_repo)

Test successful release version bump when given valid new version

action_utils.tests.test_tag_commit.fixture_git_remote()
action_utils.tests.test_tag_commit.fixture_git_repo(git_remote, git_tag)
action_utils.tests.test_tag_commit.fixture_git_tag()
action_utils.tests.test_tag_commit.fixture_no_tag_repo(git_remote)