action_utils.tests.test_check_submodule_commits module
Tests for the action_utils.check_submodule_commits module
- class action_utils.tests.test_check_submodule_commits.TestRepoHasValidSubmodules
Bases:
object
Tests for the repo_has_valid_submodules function
- test_all_valid(git_repo_all_valid, github_authed_client)
End-to-end style test, repo has 2 submodules on valid commits
- test_auth_failure(git_repo_all_valid, github_unauthed_client)
Assert proper handling of authentication failure
- test_mixed_valid(git_repo_mixed, github_authed_client)
End-to-end style test, repo has 1 submodule on a valid commit, but another on an invalid commit
- test_no_submodules(git_repo_no_submodules, github_authed_client)
End-to-end style test, repo has no submodules so it should pass by default
- test_none_valid(git_repo_all_invalid, github_authed_client)
End-to-end style test, repo has 2 submodules on invalid commits
- class action_utils.tests.test_check_submodule_commits.TestSubmoduleIsValid
Bases:
object
Tests for the submodule_is_valid function
- test_invalid(git_submodule_3, github_submodule_3)
Test submodule commit not being in list of commits in github
- test_valid(git_submodule_1, github_submodule_1)
Test submodule commit being in list of commits in github
- action_utils.tests.test_check_submodule_commits.fixture_git_remote()
- action_utils.tests.test_check_submodule_commits.fixture_git_repo_all_invalid(git_remote, git_submodule_3, git_submodule_4)
- action_utils.tests.test_check_submodule_commits.fixture_git_repo_all_valid(git_remote, git_submodule_1, git_submodule_2)
- action_utils.tests.test_check_submodule_commits.fixture_git_repo_mixed(git_remote, git_submodule_1, git_submodule_3)
- action_utils.tests.test_check_submodule_commits.fixture_git_repo_no_submodules(git_remote)
- action_utils.tests.test_check_submodule_commits.fixture_git_submodule_1()
- action_utils.tests.test_check_submodule_commits.fixture_git_submodule_2()
- action_utils.tests.test_check_submodule_commits.fixture_git_submodule_3()
- action_utils.tests.test_check_submodule_commits.fixture_git_submodule_4()
- action_utils.tests.test_check_submodule_commits.fixture_github_authed_client(github_org)
- action_utils.tests.test_check_submodule_commits.fixture_github_commits_1()
- action_utils.tests.test_check_submodule_commits.fixture_github_commits_2()
- action_utils.tests.test_check_submodule_commits.fixture_github_org(github_submodule_1, github_submodule_2, github_submodule_3, github_submodule_4)
- action_utils.tests.test_check_submodule_commits.fixture_github_submodule_1(github_commits_1)
- action_utils.tests.test_check_submodule_commits.fixture_github_submodule_2(github_commits_2)
- action_utils.tests.test_check_submodule_commits.fixture_github_submodule_3(github_commits_1)
- action_utils.tests.test_check_submodule_commits.fixture_github_submodule_4(github_commits_2)
- action_utils.tests.test_check_submodule_commits.fixture_github_unauthed_client(github_org)