RepoAuditor 0.2.67__tar.gz → 0.2.68__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {repoauditor-0.2.67 → repoauditor-0.2.68}/PKG-INFO +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowDeletions.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/AllowMainlineForcePushes.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DismissStalePullRequestApprovals.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/DoNotAllowBypassSettings.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/EnsureStatusChecks.py +2 -2
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovalMostRecentPush.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireCodeOwnerReview.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireConversationResolution.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireLinearHistory.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequirePullRequests.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireSignedCommits.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireStatusChecksToPass.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireUpToDateBranches.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/DefaultBranchRequirements/Protected.py +2 -2
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/AutoMerge.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/DeleteHeadBranches.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/MergeCommit.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/Private.py +2 -2
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/RebaseMergeCommit.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SquashCommitMerge.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SuggestUpdatingPullRequestBranches.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SupportDiscussions.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SupportIssues.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SupportProjects.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SupportWikis.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/TemplateRepository.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/WebCommitSignoff.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/__init__.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubEnterprise_EndToEndTest.py +30 -30
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/DismissStalePullRequestApprovals_UnitTest.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/EnsureStatusChecks_UnitTest.py +6 -6
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/RequireApprovalMostRecentPush_UnitTest.py +1 -1
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/RequireCodeOwnerReview_UnitTest.py +2 -2
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/RequireUpToDateBranches_UnitTest.py +2 -2
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/DefaultBranchQueryRequirements/Protected_UnitTest.py +3 -3
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/StandardQueryRequirements/Private_UnitTest.py +4 -4
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHub_EndToEndTest.py +27 -27
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/__snapshots__/GitHub_EndToEndTest.ambr +18 -138
- {repoauditor-0.2.67 → repoauditor-0.2.68}/.copier-answers.yml +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/.github/CODEOWNERS +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/.github/ISSUE_TEMPLATE/custom.md +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/.github/actions/release_impl/action.yml +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/.github/pull_request_template.md +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/.github/release_sources.yaml +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/.github/workflows/CICD.yml +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/.github/workflows/CICD_impl.yml +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/.github/workflows/EndToEnd.yml +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/.github/workflows/codeql.yml +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/.gitignore +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/.pre-commit-config.yaml +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/.python-version +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/CODE_OF_CONDUCT.md +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/CONTRIBUTING.md +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/DEVELOPMENT.md +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/GOVERNANCE.md +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/LICENSE +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/MAINTAINERS.md +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/README.md +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/SECURITY.md +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/default_config.yaml +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/minisign_key.pub +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/pyproject.toml +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/AutoGitSemVer.yaml +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/CommandLineProcessor.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Display.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/EntryPoint.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/ExecuteModules.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Impl/ParallelSequentialProcessor.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Impl/__init__.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Module.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugin.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/CommunityStandards/CommunityStandardsQuery.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/CommunityStandards/Impl/ExistsRequirementImpl.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/CommunityStandards/Impl/__init__.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/CommunityStandards/Module.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/CodeOfConduct.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/CodeOwners.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/Contributing.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/IssueTemplates.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/LicenseFile.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/PullRequestTemplates.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/ReadMe.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/SecurityPolicy.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/CommunityStandards/Requirements/__init__.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/CommunityStandards/__init__.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/CommunityStandardsPlugin.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionQuery.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicEnableRequirementImpl.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/ClassicValueRequirementImpl.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/Impl/__init__.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/RequireApprovals.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/ClassicBranchProtectionRequirements/__init__.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/DefaultBranchQuery.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/DefaultBranchRequirements/__init__.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/Impl/Common.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/Impl/EnableRequirementImpl.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/Impl/EnableRulesetRequirementImpl.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/Impl/ValueRequirementImpl.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/Impl/__init__.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/Module.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/RulesetQuery.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequirePullRequests.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequireSignedCommits.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/RequireStatusChecks.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/RulesetRequirements/__init__.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardQuery.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/DefaultBranch.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/DependabotSecurityUpdates.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/Description.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/Impl/StandardEnableRequirementImpl.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/Impl/StandardValueRequirementImpl.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/Impl/__init__.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/License.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/MergeCommitMessage.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SecretScanning.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SecretScanningPushProtection.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/SquashMergeCommitMessage.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/StandardRequirements/__init__.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHub/__init__.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHubBase/Module.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHubBase/__init__.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/GitHubPlugin.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Plugins/__init__.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Query.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/Requirement.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/src/RepoAuditor/py.typed +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/CommandLineProcessor_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/EntryPoint_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/ExecuteModules_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Module_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugin_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/CommunityStandards/CommunityStandardsQuery_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/CommunityStandards/ExistsRequirementImpl_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/CommunityStandards/GitHubCommunityStandards_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/CommunityStandards_EndToEndTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/ClassicBranchProtectionQuery_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/ClassicBranchProtectionRequirements/RequireApprovals_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/ClassicValueRequirementImpl_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/DefaultBranchQuery_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/EnableRulesetRequirementImpl_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/GitHubModule_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/GitHubSession_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/RulesetRequirements_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/RulsesetQuery_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/StandardQueryRequirements/DependabotSecurityUpdates_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/StandardQueryRequirements/Description_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/StandardQueryRequirements/License_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/StandardQueryRequirements/MergeCommitMessage_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/StandardQueryRequirements/SecretScanningPushProtection_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/StandardQueryRequirements/SecretScanning_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/StandardQueryRequirements/SquashMergeCommitMessage_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/StandardQuery_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/ValueRequrementImpl_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/GitHubModule/fixtures.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/__snapshots__/CommunityStandards_EndToEndTest.ambr +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/__snapshots__/GitHubEnterprise_EndToEndTest.ambr +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/conftest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Plugins/utilities.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Query_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/Requirement_UnitTest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/__init__.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/__snapshots__/ExecuteModules_UnitTest.ambr +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/tests/conftest.py +0 -0
- {repoauditor-0.2.67 → repoauditor-0.2.68}/uv.lock +0 -0
|
@@ -22,7 +22,7 @@ class AllowDeletions(ClassicEnableRequirementImpl):
|
|
|
22
22
|
super().__init__(
|
|
23
23
|
"AllowDeletions",
|
|
24
24
|
False,
|
|
25
|
-
"
|
|
25
|
+
"enabled",
|
|
26
26
|
"Rules applied to everyone including administrators",
|
|
27
27
|
"Allow deletions",
|
|
28
28
|
lambda data: data["branch_protection_data"]["allow_deletions"]["enabled"],
|
|
@@ -22,7 +22,7 @@ class AllowMainlineForcePushes(ClassicEnableRequirementImpl):
|
|
|
22
22
|
super().__init__(
|
|
23
23
|
"AllowMainlineForcePushes",
|
|
24
24
|
False,
|
|
25
|
-
"
|
|
25
|
+
"enabled",
|
|
26
26
|
"Rules applied to everyone including administrators",
|
|
27
27
|
"Allow force pushes",
|
|
28
28
|
lambda data: data["branch_protection_data"]["allow_force_pushes"]["enabled"],
|
|
@@ -23,7 +23,7 @@ class DismissStalePullRequestApprovals(ClassicEnableRequirementImpl):
|
|
|
23
23
|
super().__init__(
|
|
24
24
|
"DismissStalePullRequestApprovals",
|
|
25
25
|
True,
|
|
26
|
-
"
|
|
26
|
+
"disabled",
|
|
27
27
|
"Protect matching branches",
|
|
28
28
|
"Require a pull request before merging -> Dismiss stale pull request approvals when new commits are pushed",
|
|
29
29
|
_GetValue,
|
|
@@ -22,7 +22,7 @@ class DoNotAllowBypassSettings(ClassicEnableRequirementImpl):
|
|
|
22
22
|
super().__init__(
|
|
23
23
|
"DoNotAllowBypassSettings",
|
|
24
24
|
True,
|
|
25
|
-
"
|
|
25
|
+
"disabled",
|
|
26
26
|
"Protect matching branches",
|
|
27
27
|
"Do not allow bypassing the above settings",
|
|
28
28
|
lambda data: data["branch_protection_data"]["enforce_admins"]["enabled"],
|
|
@@ -57,7 +57,7 @@ class EnsureStatusChecks(Requirement):
|
|
|
57
57
|
def GetDynamicArgDefinitions(self) -> dict[str, TypeDefinitionItemType]:
|
|
58
58
|
"""Get the definitions for the arguments to this requirement."""
|
|
59
59
|
return {
|
|
60
|
-
"
|
|
60
|
+
"disabled": (
|
|
61
61
|
bool,
|
|
62
62
|
typer.Option(
|
|
63
63
|
default=False,
|
|
@@ -73,7 +73,7 @@ class EnsureStatusChecks(Requirement):
|
|
|
73
73
|
query_data: dict[str, Any],
|
|
74
74
|
requirement_args: dict[str, Any],
|
|
75
75
|
) -> Requirement.EvaluateImplResult:
|
|
76
|
-
if requirement_args["
|
|
76
|
+
if requirement_args["disabled"]:
|
|
77
77
|
return Requirement.EvaluateImplResult(
|
|
78
78
|
EvaluateResult.DoesNotApply,
|
|
79
79
|
"The status check requirement has been explicitly disabled.",
|
|
@@ -23,7 +23,7 @@ class RequireApprovalMostRecentPush(ClassicEnableRequirementImpl):
|
|
|
23
23
|
super().__init__(
|
|
24
24
|
"RequireApprovalMostRecentPush",
|
|
25
25
|
True,
|
|
26
|
-
"
|
|
26
|
+
"disabled",
|
|
27
27
|
"Protect matching branches",
|
|
28
28
|
"Require a pull request before merging -> Require approval of the most recent reviewable push",
|
|
29
29
|
_GetValue,
|
|
@@ -23,7 +23,7 @@ class RequireCodeOwnerReview(ClassicEnableRequirementImpl):
|
|
|
23
23
|
super().__init__(
|
|
24
24
|
"RequireCodeOwnerReview",
|
|
25
25
|
False,
|
|
26
|
-
"
|
|
26
|
+
"enabled",
|
|
27
27
|
"Protect matching branches",
|
|
28
28
|
"Require a pull request before merging -> Require review from Code Owners",
|
|
29
29
|
_GetValue,
|
|
@@ -22,7 +22,7 @@ class RequireConversationResolution(ClassicEnableRequirementImpl):
|
|
|
22
22
|
super().__init__(
|
|
23
23
|
"RequireConversationResolution",
|
|
24
24
|
True,
|
|
25
|
-
"
|
|
25
|
+
"disabled",
|
|
26
26
|
"Protect matching branches",
|
|
27
27
|
"Require conversation resolution before merging",
|
|
28
28
|
lambda data: data["branch_protection_data"]["required_conversation_resolution"]["enabled"],
|
|
@@ -22,7 +22,7 @@ class RequireLinearHistory(ClassicEnableRequirementImpl):
|
|
|
22
22
|
super().__init__(
|
|
23
23
|
"RequireLinearHistory",
|
|
24
24
|
False,
|
|
25
|
-
"
|
|
25
|
+
"enabled",
|
|
26
26
|
"Protect matching branches",
|
|
27
27
|
"Require linear history",
|
|
28
28
|
lambda data: data["branch_protection_data"]["required_linear_history"]["enabled"],
|
|
@@ -22,7 +22,7 @@ class RequirePullRequests(ClassicEnableRequirementImpl):
|
|
|
22
22
|
super().__init__(
|
|
23
23
|
"RequirePullRequests",
|
|
24
24
|
True,
|
|
25
|
-
"
|
|
25
|
+
"disabled",
|
|
26
26
|
"Protect matching branches",
|
|
27
27
|
"Require a pull request before merging",
|
|
28
28
|
lambda data: "required_pull_request_reviews" in data["branch_protection_data"],
|
|
@@ -22,7 +22,7 @@ class RequireSignedCommits(ClassicEnableRequirementImpl):
|
|
|
22
22
|
super().__init__(
|
|
23
23
|
"RequireSignedCommits",
|
|
24
24
|
True,
|
|
25
|
-
"
|
|
25
|
+
"disabled",
|
|
26
26
|
"Protect matching branches",
|
|
27
27
|
"Require signed commits",
|
|
28
28
|
lambda data: data["branch_protection_data"]["required_signatures"]["enabled"],
|
|
@@ -22,7 +22,7 @@ class RequireStatusChecksToPass(ClassicEnableRequirementImpl):
|
|
|
22
22
|
super().__init__(
|
|
23
23
|
"RequireStatusChecksToPass",
|
|
24
24
|
True,
|
|
25
|
-
"
|
|
25
|
+
"disabled",
|
|
26
26
|
"Protect matching branches",
|
|
27
27
|
"Require status checks to pass before merging",
|
|
28
28
|
lambda data: "required_status_checks" in data["branch_protection_data"],
|
|
@@ -23,7 +23,7 @@ class RequireUpToDateBranches(ClassicEnableRequirementImpl):
|
|
|
23
23
|
super().__init__(
|
|
24
24
|
"RequireUpToDateBranches",
|
|
25
25
|
True,
|
|
26
|
-
"
|
|
26
|
+
"disabled",
|
|
27
27
|
"Protect matching branches",
|
|
28
28
|
"Require status checks to pass before merging -> Require branches to be up to date before merging",
|
|
29
29
|
_GetValue,
|
|
@@ -56,7 +56,7 @@ class Protected(Requirement):
|
|
|
56
56
|
def GetDynamicArgDefinitions(self) -> dict[str, TypeDefinitionItemType]:
|
|
57
57
|
"""Get the definitions for the arguments to this requirement."""
|
|
58
58
|
return {
|
|
59
|
-
"
|
|
59
|
+
"disabled": (
|
|
60
60
|
bool,
|
|
61
61
|
typer.Option(
|
|
62
62
|
default=False,
|
|
@@ -78,7 +78,7 @@ class Protected(Requirement):
|
|
|
78
78
|
if is_protected is None:
|
|
79
79
|
return CreateIncompleteDataResult()
|
|
80
80
|
|
|
81
|
-
if requirement_args["
|
|
81
|
+
if requirement_args["disabled"]:
|
|
82
82
|
expected_value = False
|
|
83
83
|
provide_rationale = False
|
|
84
84
|
else:
|
|
@@ -55,7 +55,7 @@ class Private(Requirement):
|
|
|
55
55
|
def GetDynamicArgDefinitions(self) -> dict[str, TypeDefinitionItemType]:
|
|
56
56
|
"""Get the definitions for the arguments to this requirement."""
|
|
57
57
|
return {
|
|
58
|
-
"
|
|
58
|
+
"enabled": (
|
|
59
59
|
bool,
|
|
60
60
|
typer.Option(
|
|
61
61
|
default=False,
|
|
@@ -76,7 +76,7 @@ class Private(Requirement):
|
|
|
76
76
|
if result is None:
|
|
77
77
|
return CreateIncompleteDataResult()
|
|
78
78
|
|
|
79
|
-
expect_private = requirement_args["
|
|
79
|
+
expect_private = requirement_args["enabled"]
|
|
80
80
|
|
|
81
81
|
if result != expect_private:
|
|
82
82
|
query_data["__expected_visibility"] = "private" if expect_private else "public"
|
|
@@ -32,7 +32,7 @@ def args() -> list[str]:
|
|
|
32
32
|
GetGithubUrl("enterprise"),
|
|
33
33
|
# Currently GitHub Enterprise does not support GitHub hosted runners.
|
|
34
34
|
# As a result, no status checks show up to select and this will always fail.
|
|
35
|
-
"--GitHub-EnsureStatusChecks-
|
|
35
|
+
"--GitHub-EnsureStatusChecks-disabled",
|
|
36
36
|
]
|
|
37
37
|
|
|
38
38
|
|
|
@@ -63,14 +63,14 @@ def test_Successful(pat_args, snapshot):
|
|
|
63
63
|
class TestStandard:
|
|
64
64
|
# ----------------------------------------------------------------------
|
|
65
65
|
def test_NoAutoMerge(self, pat_args, snapshot):
|
|
66
|
-
result = CliRunner().invoke(app, pat_args + ["--GitHub-AutoMerge-
|
|
66
|
+
result = CliRunner().invoke(app, pat_args + ["--GitHub-AutoMerge-disabled"])
|
|
67
67
|
|
|
68
68
|
assert result.exit_code == -1, result.output
|
|
69
69
|
assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
|
|
70
70
|
|
|
71
71
|
# ----------------------------------------------------------------------
|
|
72
72
|
def test_NoDeleteHeadBranches(self, pat_args, snapshot):
|
|
73
|
-
result = CliRunner().invoke(app, pat_args + ["--GitHub-DeleteHeadBranches-
|
|
73
|
+
result = CliRunner().invoke(app, pat_args + ["--GitHub-DeleteHeadBranches-disabled"])
|
|
74
74
|
|
|
75
75
|
assert result.exit_code == -1, result.output
|
|
76
76
|
assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
|
|
@@ -78,21 +78,21 @@ class TestStandard:
|
|
|
78
78
|
# ----------------------------------------------------------------------
|
|
79
79
|
@pytest.mark.skip(reason="Not enabled by Enterprise Administrator")
|
|
80
80
|
def test_NoDependabotSecurityUpdates(self, pat_args, snapshot):
|
|
81
|
-
result = CliRunner().invoke(app, pat_args + ["--GitHub-DependabotSecurityUpdates-
|
|
81
|
+
result = CliRunner().invoke(app, pat_args + ["--GitHub-DependabotSecurityUpdates-disabled"])
|
|
82
82
|
|
|
83
83
|
assert result.exit_code == -1, result.output
|
|
84
84
|
assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
|
|
85
85
|
|
|
86
86
|
# ----------------------------------------------------------------------
|
|
87
87
|
def test_NoMergeCommit(self, pat_args, snapshot):
|
|
88
|
-
result = CliRunner().invoke(app, pat_args + ["--GitHub-MergeCommit-
|
|
88
|
+
result = CliRunner().invoke(app, pat_args + ["--GitHub-MergeCommit-disabled"])
|
|
89
89
|
|
|
90
90
|
assert result.exit_code == -1, result.output
|
|
91
91
|
assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
|
|
92
92
|
|
|
93
93
|
# ----------------------------------------------------------------------
|
|
94
94
|
def test_YesRebaseMergeCommit(self, pat_args, snapshot):
|
|
95
|
-
result = CliRunner().invoke(app, pat_args + ["--GitHub-RebaseMergeCommit-
|
|
95
|
+
result = CliRunner().invoke(app, pat_args + ["--GitHub-RebaseMergeCommit-enabled"])
|
|
96
96
|
|
|
97
97
|
assert result.exit_code == -1, result.output
|
|
98
98
|
assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
|
|
@@ -101,7 +101,7 @@ class TestStandard:
|
|
|
101
101
|
@pytest.mark.skip(reason="Not enabled by Enterprise Administrator")
|
|
102
102
|
def test_NoSecretScanning(self, pat_args, snapshot):
|
|
103
103
|
"""Test is secret scanning is not disabled."""
|
|
104
|
-
result = CliRunner().invoke(app, pat_args + ["--GitHub-SecretScanning-
|
|
104
|
+
result = CliRunner().invoke(app, pat_args + ["--GitHub-SecretScanning-disabled"])
|
|
105
105
|
|
|
106
106
|
assert result.exit_code == -1, result.output
|
|
107
107
|
assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
|
|
@@ -110,63 +110,63 @@ class TestStandard:
|
|
|
110
110
|
@pytest.mark.skip(reason="Not enabled by Enterprise Administrator")
|
|
111
111
|
def test_NoSecretScanningPushProtection(self, pat_args, snapshot):
|
|
112
112
|
"""Test is secret scanning push protection is not disabled."""
|
|
113
|
-
result = CliRunner().invoke(app, pat_args + ["--GitHub-SecretScanningPushProtection-
|
|
113
|
+
result = CliRunner().invoke(app, pat_args + ["--GitHub-SecretScanningPushProtection-disabled"])
|
|
114
114
|
|
|
115
115
|
assert result.exit_code == -1, result.output
|
|
116
116
|
assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
|
|
117
117
|
|
|
118
118
|
# ----------------------------------------------------------------------
|
|
119
119
|
def test_YesSquashCommitMerge(self, pat_args, snapshot):
|
|
120
|
-
result = CliRunner().invoke(app, pat_args + ["--GitHub-SquashCommitMerge-
|
|
120
|
+
result = CliRunner().invoke(app, pat_args + ["--GitHub-SquashCommitMerge-enabled"])
|
|
121
121
|
|
|
122
122
|
assert result.exit_code == -1, result.output
|
|
123
123
|
assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
|
|
124
124
|
|
|
125
125
|
# ----------------------------------------------------------------------
|
|
126
126
|
def test_YesSuggestUpdatingPullRequestBranches(self, pat_args, snapshot):
|
|
127
|
-
result = CliRunner().invoke(app, pat_args + ["--GitHub-SuggestUpdatingPullRequestBranches-
|
|
127
|
+
result = CliRunner().invoke(app, pat_args + ["--GitHub-SuggestUpdatingPullRequestBranches-enabled"])
|
|
128
128
|
|
|
129
129
|
assert result.exit_code == -1, result.output
|
|
130
130
|
assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
|
|
131
131
|
|
|
132
132
|
# ----------------------------------------------------------------------
|
|
133
133
|
def test_YesSupportDiscussions(self, pat_args, snapshot):
|
|
134
|
-
result = CliRunner().invoke(app, pat_args + ["--GitHub-SupportDiscussions-
|
|
134
|
+
result = CliRunner().invoke(app, pat_args + ["--GitHub-SupportDiscussions-enabled"])
|
|
135
135
|
|
|
136
136
|
assert result.exit_code == -1, result.output
|
|
137
137
|
assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
|
|
138
138
|
|
|
139
139
|
# ----------------------------------------------------------------------
|
|
140
140
|
def test_NoSupportIssues(self, pat_args, snapshot):
|
|
141
|
-
result = CliRunner().invoke(app, pat_args + ["--GitHub-SupportIssues-
|
|
141
|
+
result = CliRunner().invoke(app, pat_args + ["--GitHub-SupportIssues-disabled"])
|
|
142
142
|
|
|
143
143
|
assert result.exit_code == -1, result.output
|
|
144
144
|
assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
|
|
145
145
|
|
|
146
146
|
# ----------------------------------------------------------------------
|
|
147
147
|
def test_NoSupportProjects(self, pat_args, snapshot):
|
|
148
|
-
result = CliRunner().invoke(app, pat_args + ["--GitHub-SupportProjects-
|
|
148
|
+
result = CliRunner().invoke(app, pat_args + ["--GitHub-SupportProjects-disabled"])
|
|
149
149
|
|
|
150
150
|
assert result.exit_code == -1, result.output
|
|
151
151
|
assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
|
|
152
152
|
|
|
153
153
|
# ----------------------------------------------------------------------
|
|
154
154
|
def test_NoSupportWikis(self, pat_args, snapshot):
|
|
155
|
-
result = CliRunner().invoke(app, pat_args + ["--GitHub-SupportWikis-
|
|
155
|
+
result = CliRunner().invoke(app, pat_args + ["--GitHub-SupportWikis-disabled"])
|
|
156
156
|
|
|
157
157
|
assert result.exit_code == -1, result.output
|
|
158
158
|
assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
|
|
159
159
|
|
|
160
160
|
# ----------------------------------------------------------------------
|
|
161
161
|
def test_YesTemplateRepository(self, pat_args, snapshot):
|
|
162
|
-
result = CliRunner().invoke(app, pat_args + ["--GitHub-TemplateRepository-
|
|
162
|
+
result = CliRunner().invoke(app, pat_args + ["--GitHub-TemplateRepository-enabled"])
|
|
163
163
|
|
|
164
164
|
assert result.exit_code == -1, result.output
|
|
165
165
|
assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
|
|
166
166
|
|
|
167
167
|
# ----------------------------------------------------------------------
|
|
168
168
|
def test_NoWebCommitSignoff(self, pat_args, snapshot):
|
|
169
|
-
result = CliRunner().invoke(app, pat_args + ["--GitHub-WebCommitSignoff-
|
|
169
|
+
result = CliRunner().invoke(app, pat_args + ["--GitHub-WebCommitSignoff-disabled"])
|
|
170
170
|
|
|
171
171
|
assert result.exit_code == -1, result.output
|
|
172
172
|
assert ScrubDurationGithuburlAndSpaces(result.stdout) == snapshot
|
|
@@ -203,7 +203,7 @@ class TestStandard:
|
|
|
203
203
|
def test_PrivateValue(self, pat_args, snapshot):
|
|
204
204
|
result = CliRunner().invoke(
|
|
205
205
|
app,
|
|
206
|
-
pat_args + ["--GitHub-Private-
|
|
206
|
+
pat_args + ["--GitHub-Private-enabled"],
|
|
207
207
|
)
|
|
208
208
|
|
|
209
209
|
assert result.exit_code == -1, result.output
|
|
@@ -227,7 +227,7 @@ class TestStandard:
|
|
|
227
227
|
def test_Protected(self, pat_args, snapshot):
|
|
228
228
|
result = CliRunner().invoke(
|
|
229
229
|
app,
|
|
230
|
-
pat_args + ["--GitHub-Protected-
|
|
230
|
+
pat_args + ["--GitHub-Protected-disabled"],
|
|
231
231
|
)
|
|
232
232
|
|
|
233
233
|
assert result.exit_code == -1, result.output
|
|
@@ -240,7 +240,7 @@ class TestClassic:
|
|
|
240
240
|
def test_AllowDeletions(self, pat_args, snapshot):
|
|
241
241
|
result = CliRunner().invoke(
|
|
242
242
|
app,
|
|
243
|
-
pat_args + ["--GitHub-AllowDeletions-
|
|
243
|
+
pat_args + ["--GitHub-AllowDeletions-enabled"],
|
|
244
244
|
)
|
|
245
245
|
|
|
246
246
|
assert result.exit_code == -1, result.output
|
|
@@ -250,7 +250,7 @@ class TestClassic:
|
|
|
250
250
|
def test_AllowForcePush(self, pat_args, snapshot):
|
|
251
251
|
result = CliRunner().invoke(
|
|
252
252
|
app,
|
|
253
|
-
pat_args + ["--GitHub-AllowMainlineForcePushes-
|
|
253
|
+
pat_args + ["--GitHub-AllowMainlineForcePushes-enabled"],
|
|
254
254
|
)
|
|
255
255
|
|
|
256
256
|
assert result.exit_code == -1, result.output
|
|
@@ -260,7 +260,7 @@ class TestClassic:
|
|
|
260
260
|
def test_DismissStalePullRequestApprovals(self, pat_args, snapshot):
|
|
261
261
|
result = CliRunner().invoke(
|
|
262
262
|
app,
|
|
263
|
-
pat_args + ["--GitHub-DismissStalePullRequestApprovals-
|
|
263
|
+
pat_args + ["--GitHub-DismissStalePullRequestApprovals-disabled"],
|
|
264
264
|
)
|
|
265
265
|
|
|
266
266
|
assert result.exit_code == -1, result.output
|
|
@@ -270,7 +270,7 @@ class TestClassic:
|
|
|
270
270
|
def test_DoNotAllowBypassSettings(self, pat_args, snapshot):
|
|
271
271
|
result = CliRunner().invoke(
|
|
272
272
|
app,
|
|
273
|
-
pat_args + ["--GitHub-DoNotAllowBypassSettings-
|
|
273
|
+
pat_args + ["--GitHub-DoNotAllowBypassSettings-disabled"],
|
|
274
274
|
)
|
|
275
275
|
|
|
276
276
|
assert result.exit_code == -1, result.output
|
|
@@ -291,7 +291,7 @@ class TestClassic:
|
|
|
291
291
|
def test_RequireApprovalMostRecentPush(self, pat_args, snapshot):
|
|
292
292
|
result = CliRunner().invoke(
|
|
293
293
|
app,
|
|
294
|
-
pat_args + ["--GitHub-RequireApprovalMostRecentPush-
|
|
294
|
+
pat_args + ["--GitHub-RequireApprovalMostRecentPush-disabled"],
|
|
295
295
|
)
|
|
296
296
|
|
|
297
297
|
assert result.exit_code == -1, result.output
|
|
@@ -311,7 +311,7 @@ class TestClassic:
|
|
|
311
311
|
def test_RequireCodeOwnerReview(self, pat_args, snapshot):
|
|
312
312
|
result = CliRunner().invoke(
|
|
313
313
|
app,
|
|
314
|
-
pat_args + ["--GitHub-RequireCodeOwnerReview-
|
|
314
|
+
pat_args + ["--GitHub-RequireCodeOwnerReview-enabled"],
|
|
315
315
|
)
|
|
316
316
|
|
|
317
317
|
assert result.exit_code == -1, result.output
|
|
@@ -321,7 +321,7 @@ class TestClassic:
|
|
|
321
321
|
def test_RequireConversationResolution(self, pat_args, snapshot):
|
|
322
322
|
result = CliRunner().invoke(
|
|
323
323
|
app,
|
|
324
|
-
pat_args + ["--GitHub-RequireConversationResolution-
|
|
324
|
+
pat_args + ["--GitHub-RequireConversationResolution-disabled"],
|
|
325
325
|
)
|
|
326
326
|
|
|
327
327
|
assert result.exit_code == -1, result.output
|
|
@@ -331,7 +331,7 @@ class TestClassic:
|
|
|
331
331
|
def test_RequireLinearHistory(self, pat_args, snapshot):
|
|
332
332
|
result = CliRunner().invoke(
|
|
333
333
|
app,
|
|
334
|
-
pat_args + ["--GitHub-RequireLinearHistory-
|
|
334
|
+
pat_args + ["--GitHub-RequireLinearHistory-enabled"],
|
|
335
335
|
)
|
|
336
336
|
|
|
337
337
|
assert result.exit_code == -1, result.output
|
|
@@ -341,7 +341,7 @@ class TestClassic:
|
|
|
341
341
|
def test_RequirePullRequests(self, pat_args, snapshot):
|
|
342
342
|
result = CliRunner().invoke(
|
|
343
343
|
app,
|
|
344
|
-
pat_args + ["--GitHub-RequirePullRequests-
|
|
344
|
+
pat_args + ["--GitHub-RequirePullRequests-disabled"],
|
|
345
345
|
)
|
|
346
346
|
|
|
347
347
|
assert result.exit_code == -1, result.output
|
|
@@ -351,7 +351,7 @@ class TestClassic:
|
|
|
351
351
|
def test_RequireSignedCommits(self, pat_args, snapshot):
|
|
352
352
|
result = CliRunner().invoke(
|
|
353
353
|
app,
|
|
354
|
-
pat_args + ["--GitHub-RequireSignedCommits-
|
|
354
|
+
pat_args + ["--GitHub-RequireSignedCommits-disabled"],
|
|
355
355
|
)
|
|
356
356
|
|
|
357
357
|
assert result.exit_code == -1, result.output
|
|
@@ -361,7 +361,7 @@ class TestClassic:
|
|
|
361
361
|
def test_RequireStatusChecksToPass(self, pat_args, snapshot):
|
|
362
362
|
result = CliRunner().invoke(
|
|
363
363
|
app,
|
|
364
|
-
pat_args + ["--GitHub-RequireStatusChecksToPass-
|
|
364
|
+
pat_args + ["--GitHub-RequireStatusChecksToPass-disabled"],
|
|
365
365
|
)
|
|
366
366
|
|
|
367
367
|
assert result.exit_code == -1, result.output
|
|
@@ -371,7 +371,7 @@ class TestClassic:
|
|
|
371
371
|
def test_RequireUpToDateBranches(self, pat_args, snapshot):
|
|
372
372
|
result = CliRunner().invoke(
|
|
373
373
|
app,
|
|
374
|
-
pat_args + ["--GitHub-RequireUpToDateBranches-
|
|
374
|
+
pat_args + ["--GitHub-RequireUpToDateBranches-disabled"],
|
|
375
375
|
)
|
|
376
376
|
|
|
377
377
|
assert result.exit_code == -1, result.output
|
|
@@ -70,6 +70,6 @@ class TestDismissStalePullRequestApprovals:
|
|
|
70
70
|
def test_successful(self, requirement, query_data):
|
|
71
71
|
"""Test successful"""
|
|
72
72
|
query_data["branch_protection_data"]["required_pull_request_reviews"]["dismiss_stale_reviews"] = True
|
|
73
|
-
requirement_args = {"
|
|
73
|
+
requirement_args = {"disabled": False}
|
|
74
74
|
result = requirement.Evaluate(query_data, requirement_args)
|
|
75
75
|
assert result.result == EvaluateResult.Success
|
|
@@ -35,7 +35,7 @@ def requirement():
|
|
|
35
35
|
class TestEnsureStatusChecks:
|
|
36
36
|
def test_disabled(self, requirement, query_data):
|
|
37
37
|
"""Test disabled requirement"""
|
|
38
|
-
requirement_args = {"
|
|
38
|
+
requirement_args = {"disabled": True}
|
|
39
39
|
result = requirement.Evaluate(query_data, requirement_args)
|
|
40
40
|
assert result.result == EvaluateResult.DoesNotApply
|
|
41
41
|
assert "The status check requirement has been explicitly disabled." in result.context
|
|
@@ -43,7 +43,7 @@ class TestEnsureStatusChecks:
|
|
|
43
43
|
def test_required_status_checks_missing(self, requirement, query_data):
|
|
44
44
|
"""Test when `required_status_checks` is missing"""
|
|
45
45
|
query_data["branch_protection_data"] = {}
|
|
46
|
-
requirement_args = {"
|
|
46
|
+
requirement_args = {"disabled": False}
|
|
47
47
|
result = requirement.Evaluate(query_data, requirement_args)
|
|
48
48
|
assert result.result == EvaluateResult.DoesNotApply
|
|
49
49
|
assert result.context is None
|
|
@@ -51,7 +51,7 @@ class TestEnsureStatusChecks:
|
|
|
51
51
|
def test_required_status_checks_none(self, requirement, query_data):
|
|
52
52
|
"""Test when `required_status_checks` is None"""
|
|
53
53
|
query_data["branch_protection_data"] = {"required_status_checks": None}
|
|
54
|
-
requirement_args = {"
|
|
54
|
+
requirement_args = {"disabled": False}
|
|
55
55
|
result = requirement.Evaluate(query_data, requirement_args)
|
|
56
56
|
assert result.result == EvaluateResult.DoesNotApply
|
|
57
57
|
assert result.context is None
|
|
@@ -59,7 +59,7 @@ class TestEnsureStatusChecks:
|
|
|
59
59
|
def test_checks_missing(self, requirement, query_data):
|
|
60
60
|
"""Test when `checks` is missing"""
|
|
61
61
|
query_data["branch_protection_data"]["required_status_checks"] = {}
|
|
62
|
-
requirement_args = {"
|
|
62
|
+
requirement_args = {"disabled": False}
|
|
63
63
|
result = requirement.Evaluate(query_data, requirement_args)
|
|
64
64
|
assert result.result == EvaluateResult.Error
|
|
65
65
|
assert "No status checks are configured." in result.context
|
|
@@ -67,7 +67,7 @@ class TestEnsureStatusChecks:
|
|
|
67
67
|
def test_checks_none(self, requirement, query_data):
|
|
68
68
|
"""Test when `checks` is None"""
|
|
69
69
|
query_data["branch_protection_data"]["required_status_checks"] = {"checks": None}
|
|
70
|
-
requirement_args = {"
|
|
70
|
+
requirement_args = {"disabled": False}
|
|
71
71
|
result = requirement.Evaluate(query_data, requirement_args)
|
|
72
72
|
assert result.result == EvaluateResult.Error
|
|
73
73
|
assert "No status checks are configured." in result.context
|
|
@@ -75,7 +75,7 @@ class TestEnsureStatusChecks:
|
|
|
75
75
|
def test_Successful(self, requirement, query_data):
|
|
76
76
|
"""Test successful"""
|
|
77
77
|
query_data["branch_protection_data"]["required_status_checks"]["checks"] = ["check1", "check2"]
|
|
78
|
-
requirement_args = {"
|
|
78
|
+
requirement_args = {"disabled": False}
|
|
79
79
|
result = requirement.Evaluate(query_data, requirement_args)
|
|
80
80
|
assert result.result == EvaluateResult.Success
|
|
81
81
|
|