action_utils.tests.test_common module
Tests for the action_utils.common module
- class action_utils.tests.test_common.TestGetRepoName
Bases:
object
Tests for the get_repo_name function
- test_get_repo_name(repo)
Test getting repository name from Repo object
- class action_utils.tests.test_common.TestGetRepoNameFromUrl
Bases:
object
Tests for the get_repo_name_from_url function
- test_from_git_url(git_url)
Assert correct parsing of a git url
- test_from_https_url(https_url)
Assert correct parsing of a https url
- class action_utils.tests.test_common.TestGetSubmoduleName
Bases:
object
Tests for the get_submodule_name function
- test_get_submodule_name(submodule)
Test getting repository name from Submodule object
- class action_utils.tests.test_common.TestVersionTag
Bases:
object
Tests for the VersionTag class
- test_assert_valid_new_version_major_bump(major_1, major_2)
Test version increment assertion with a valid major version bump
- test_assert_valid_new_version_major_bump_bad_new_minor(major_1)
Test that minor version cannot be incremented when major version is incremented
- test_assert_valid_new_version_major_bump_bad_new_patch(major_1)
Test that patch version cannot be incremented when major version is incremented
- test_assert_valid_new_version_major_bump_too_big(major_1)
Test major version increment > 1 is treated as invalid
- test_assert_valid_new_version_minor_bump(minor_1, minor_2)
Test version increment assertion with a valid minor version bump
- test_assert_valid_new_version_minor_bump_bad_new_patch(minor_1)
Test that patch version cannot be incremented when minor version is incremented
- test_assert_valid_new_version_minor_bump_too_big(minor_1)
Test minor version increment > 1 is treated as invalid
- test_assert_valid_new_version_patch_bump(patch_1, patch_2)
Test version increment assertion with a valid patch version bump
- test_assert_valid_new_version_patch_bump_too_big(patch_1)
Test patch version increment > 1 is treated as invalid
- test_assert_valid_new_version_smaller_version_major(major_1)
Test version increment assertion with a new version less than current version wrt to major version
- test_assert_valid_new_version_smaller_version_minor(minor_1)
Test version increment assertion with a new version less than current version wrt to minor version
- test_assert_valid_new_version_smaller_version_patch(patch_1)
Test version increment assertion with a new version less than current version wrt to patch version
- test_get_new_release(major_with_new_release)
Test the get_new_release method correctly increments the release number
- test_invalid_tag_handling()
Test that different invalid versions correctly cause an InvalidVersion Exception to be raised
- test_major_minor_patch_release_commit_addded(version_with_commit)
Test parsing of version with commit string appended
- test_major_minor_patch_release_date_added(version_with_date)
Test parsing of version with date appended
- test_major_minor_patch_release_date_and_commit_added(version_with_date_and_commit)
Test parsing of version with both date and commit appended
- test_major_minor_patch_release_standard(major_with_new_release)
Test parsing of version with standard tag format
- test_operator_major_major(major_1, major_2)
Test comparators with 2 versions only differing by major version
- test_operator_major_minor(major_1, minor_1)
Test comparators with 2 versions differing by major and minor versions
- test_operator_major_patch(major_1, patch_1)
Test comparators with 2 versions differing by major and patch versions
- test_operator_minor_minor(minor_1, minor_2)
Test comparators with 2 versions only differing by minor version
- test_operator_minor_patch(minor_1, patch_1)
Test comparators with 2 versions differing by minor and patch versions
- test_operator_patch_patch(patch_1, patch_2)
Test comparators with 2 versions only differing by patch version
- static test_str(major_1)
Test __str__ magic method
- action_utils.tests.test_common.fixture_git_url()
- action_utils.tests.test_common.fixture_https_url()
- action_utils.tests.test_common.fixture_major_1()
- action_utils.tests.test_common.fixture_major_2()
- action_utils.tests.test_common.fixture_major_with_new_release()
- action_utils.tests.test_common.fixture_minor_1()
- action_utils.tests.test_common.fixture_minor_2()
- action_utils.tests.test_common.fixture_origin_remote(git_url)
- action_utils.tests.test_common.fixture_patch_1()
- action_utils.tests.test_common.fixture_patch_2()
- action_utils.tests.test_common.fixture_repo(remote)
- action_utils.tests.test_common.fixture_submodule(git_url)
- action_utils.tests.test_common.fixture_version_with_commit()
- action_utils.tests.test_common.fixture_version_with_date()
- action_utils.tests.test_common.fixture_version_with_date_and_commit()