action_utils.tests.test_check_version module

Tests for the action_utils.check_version module

class action_utils.tests.test_check_version.TestFileIsRelevant

Bases: object

Tests for the file_is_relevant utility function

test_include_match_exclude_match(tmp_path)

Test that when the include list is matched but the exclude list is also matched, False is returned

test_include_match_no_exclude_match(tmp_path)

Test that when the include list is matched and the exclude list is not, True is returned

test_no_excludes()

Test handling of empty exclude list

test_no_include_match()

Test that when the include list is not matched, False is returned

test_no_includes()

Test handling of empty include list

class action_utils.tests.test_check_version.TestMissingVersionBump

Bases: object

Tests for the missing_version_bump function

test_no_relevant_files_changed(gh_repo, gh_pull)

Test that when no relevant files were changed, the check returns False

test_relevant_files_changed_no_version_bump(gh_repo, gh_pull)

Test that when relevant files were changed, and the version was not bumped, the check returns True

test_relevant_files_changed_version_bump(gh_repo, gh_pull)

Test that when relevant files were changed, and the version was bumped, the check returns False

action_utils.tests.test_check_version.fixture_fh_files()
action_utils.tests.test_check_version.fixture_gh_pull(gh_files)
action_utils.tests.test_check_version.fixture_gh_repo(gh_pull, gh_tags)
action_utils.tests.test_check_version.fixture_gh_tags()