Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONFORMANCE.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
},
{
"behavioral_tests": [
"tests/test_lockfile.py::TestLockFile::test_to_yaml"
"tests/unit/deps/test_lockfile.py::TestLockFile::test_to_yaml"
],
"conformance_class": "consumer",
"id": "req-lk-001",
Expand All @@ -119,7 +119,7 @@
"test_count": 2,
"tests": [
"tests/spec_conformance/test_lockfile_reqs.py::test_lockfile_valid_v2_passes_schema",
"tests/test_lockfile.py::TestLockFile::test_to_yaml"
"tests/unit/deps/test_lockfile.py::TestLockFile::test_to_yaml"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions docs/src/content/docs/reference/primitive-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Conflict detection uses O(1) name-indexed lookups, so performance remains consta

## Testing

Comprehensive test suite in `tests/test_enhanced_discovery.py` covers:
Comprehensive test suite in `tests/unit/primitives/test_enhanced_discovery.py` covers:

- Source tracking functionality
- Conflict detection accuracy
Expand All @@ -217,5 +217,5 @@ Comprehensive test suite in `tests/test_enhanced_discovery.py` covers:
Run tests with:

```bash
python -m pytest tests/test_enhanced_discovery.py -v
python -m pytest tests/unit/primitives/test_enhanced_discovery.py -v
```
Empty file removed tests/acceptance/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion tests/integration/test_gitlab_install_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Closes the regression-trap gap flagged by the review panel for PR #1149:
no integration-with-fixtures tier coverage exercised the GitLab REST v4
raw-file path through ``GitHubPackageDownloader.download_package``. The
unit tests in ``tests/test_github_downloader.py`` cover the strategy
unit tests in ``tests/unit/deps/test_github_downloader.py`` cover the strategy
class directly, but they bypass ``download_package``, virtual-file
package materialisation, and lockfile entry construction.

Expand Down
44 changes: 22 additions & 22 deletions tests/quality/assertion_quality_baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"tests/unit/registry/test_resolver_e2e_http.py": 1
},
"AQ003_unobserved_outcome": {
"tests/acceptance/test_logging_acceptance.py": 1,
"tests/benchmarks/test_audit_benchmarks.py": 10,
"tests/benchmarks/test_compilation_hot_paths.py": 19,
"tests/benchmarks/test_git_and_compiler_benchmarks.py": 22,
Expand Down Expand Up @@ -91,6 +90,7 @@
"tests/integration/test_git_reference_resolver.py": 16,
"tests/integration/test_git_text_eol_pin.py": 1,
"tests/integration/test_git_transport_policy.py": 2,
"tests/integration/test_gitlab_git_transport.py": 12,
"tests/integration/test_gitlab_sparse_transport_contract.py": 2,
"tests/integration/test_global_agent_adoption_lifecycle.py": 2,
"tests/integration/test_global_audit_deploy_root.py": 1,
Expand Down Expand Up @@ -211,22 +211,10 @@
"tests/spec_conformance/test_targets_behavior_reqs.py": 3,
"tests/spec_conformance/test_unmanaged_skill_preflight_reqs.py": 4,
"tests/spec_conformance/test_user_scope_executable_gate_reqs.py": 1,
"tests/test_apm_package_models.py": 118,
"tests/test_apm_resolver.py": 42,
"tests/test_codex_docker_args_fix.py": 6,
"tests/test_codex_empty_string_and_defaults.py": 7,
"tests/test_collision_integration.py": 3,
"tests/test_console.py": 1,
"tests/test_distributed_compilation.py": 11,
"tests/test_empty_string_and_defaults.py": 5,
"tests/test_enhanced_discovery.py": 16,
"tests/test_github_downloader.py": 93,
"tests/test_github_downloader_token_precedence.py": 12,
"tests/test_gitlab_git_transport.py": 12,
"tests/test_lockfile.py": 84,
"tests/test_runnable_prompts.py": 17,
"tests/test_runtime_manager_token_precedence.py": 6,
"tests/test_virtual_package_multi_install.py": 9,
"tests/unit/adapters/test_codex_docker_args_fix.py": 6,
"tests/unit/adapters/test_codex_empty_string_and_defaults.py": 7,
"tests/unit/adapters/test_empty_string_and_defaults.py": 5,
"tests/unit/adapters/test_hermes_client_adapter.py": 15,
"tests/unit/adapters/test_project_mcp_config_links.py": 2,
"tests/unit/adapters/test_v01_variables_process_arguments.py": 6,
Expand Down Expand Up @@ -276,6 +264,7 @@
"tests/unit/compilation/test_context_optimizer_single_walk.py": 19,
"tests/unit/compilation/test_context_optimizer_symlinked_files.py": 10,
"tests/unit/compilation/test_coverage_guarantees.py": 5,
"tests/unit/compilation/test_distributed_compilation.py": 11,
"tests/unit/compilation/test_distributed_compiler_hermetic.py": 61,
"tests/unit/compilation/test_empty_agents_shells_1730.py": 6,
"tests/unit/compilation/test_gemini_formatter.py": 8,
Expand All @@ -295,12 +284,14 @@
"tests/unit/core/test_auth_outcome_io.py": 1,
"tests/unit/core/test_build_orchestrator.py": 24,
"tests/unit/core/test_bundle_row_scope_io.py": 1,
"tests/unit/core/test_collision_integration.py": 3,
"tests/unit/core/test_deployment_state_io.py": 4,
"tests/unit/core/test_effective_target_decision.py": 11,
"tests/unit/core/test_error_renderer_io.py": 1,
"tests/unit/core/test_experimental_io.py": 16,
"tests/unit/core/test_github_auth_first_optout_io.py": 6,
"tests/unit/core/test_plugin_manifest.py": 45,
"tests/unit/core/test_runnable_prompts.py": 17,
"tests/unit/core/test_script_executors.py": 20,
"tests/unit/core/test_script_executors_io.py": 13,
"tests/unit/core/test_script_runner_execution_io.py": 34,
Expand All @@ -310,6 +301,7 @@
"tests/unit/core/test_target_detection.py": 88,
"tests/unit/core/test_target_detection_io.py": 34,
"tests/unit/core/test_target_resolution_v2_io.py": 19,
"tests/unit/deps/test_apm_resolver.py": 42,
"tests/unit/deps/test_apm_resolver_edge_cases.py": 31,
"tests/unit/deps/test_apm_resolver_parallel.py": 8,
"tests/unit/deps/test_apm_resolver_selection_merge.py": 14,
Expand All @@ -318,14 +310,17 @@
"tests/unit/deps/test_carried_license.py": 7,
"tests/unit/deps/test_clone_connect_retry.py": 1,
"tests/unit/deps/test_download_strategies_artifactory_archive.py": 1,
"tests/unit/deps/test_github_downloader.py": 93,
"tests/unit/deps/test_github_downloader_package_download.py": 25,
"tests/unit/deps/test_github_downloader_safe_rmtree.py": 1,
"tests/unit/deps/test_github_downloader_single_file_sha.py": 7,
"tests/unit/deps/test_github_downloader_token_precedence.py": 12,
"tests/unit/deps/test_github_downloader_tree_probe.py": 4,
"tests/unit/deps/test_gitlab_sparse_transport_contract.py": 8,
"tests/unit/deps/test_hook_package_admission.py": 2,
"tests/unit/deps/test_immutable_requirement_conflicts.py": 15,
"tests/unit/deps/test_lock_parent_placement_manifest.py": 3,
"tests/unit/deps/test_lockfile.py": 84,
"tests/unit/deps/test_lockfile_conflict_markers.py": 3,
"tests/unit/deps/test_lockfile_generator.py": 4,
"tests/unit/deps/test_lockfile_staged_files.py": 5,
Expand All @@ -341,6 +336,7 @@
"tests/unit/deps/test_stamp_plugin_version.py": 5,
"tests/unit/deps/test_tiered_ref_resolver_bare_cache.py": 5,
"tests/unit/deps/test_virtual_file.py": 1,
"tests/unit/deps/test_virtual_package_multi_install.py": 9,
"tests/unit/export/test_declared_license.py": 9,
"tests/unit/export/test_sbom_golden.py": 1,
"tests/unit/install/phases/test_cleanup_phase.py": 29,
Expand Down Expand Up @@ -384,6 +380,7 @@
"tests/unit/install/test_local_content_symlink_deref.py": 1,
"tests/unit/install/test_local_edit_hint.py": 17,
"tests/unit/install/test_local_rows_need_reconciling.py": 4,
"tests/unit/install/test_logging_acceptance.py": 1,
"tests/unit/install/test_manifest_reconcile_dropped_hook_targets.py": 5,
"tests/unit/install/test_mcp_integration_extraction.py": 11,
"tests/unit/install/test_mcp_integrator_install_project_root.py": 2,
Expand Down Expand Up @@ -489,6 +486,7 @@
"tests/unit/marketplace/test_version_pins.py": 10,
"tests/unit/marketplace/test_yml_editor.py": 2,
"tests/unit/marketplace/test_yml_schema.py": 31,
"tests/unit/models/test_apm_package_models.py": 118,
"tests/unit/models/test_dependency_materialization.py": 16,
"tests/unit/models/test_manifest_io.py": 2,
"tests/unit/policy/test_audit_claim_paths.py": 3,
Expand All @@ -515,9 +513,11 @@
"tests/unit/policy/test_run_dependency_policy_checks_io.py": 5,
"tests/unit/policy/test_trust_policy_outcome.py": 3,
"tests/unit/primitives/test_discovery_parser.py": 87,
"tests/unit/primitives/test_enhanced_discovery.py": 16,
"tests/unit/registry/test_compat_matrix.py": 16,
"tests/unit/registry/test_extractor.py": 1,
"tests/unit/registry/test_outdated.py": 3,
"tests/unit/runtime/test_runtime_manager_token_precedence.py": 6,
"tests/unit/runtime/test_runtime_utils.py": 15,
"tests/unit/scripts/test_architecture_authenticated_egress.py": 7,
"tests/unit/scripts/test_architecture_skill_layout_guard.py": 4,
Expand Down Expand Up @@ -714,6 +714,7 @@
"tests/integration/test_git_sparse.py": 2,
"tests/integration/test_github_downloader_validation_flow.py": 4,
"tests/integration/test_github_marketplace_ssh_install.py": 1,
"tests/integration/test_gitlab_git_transport.py": 1,
"tests/integration/test_grok_bot_skill_deploy.py": 4,
"tests/integration/test_grok_bot_target.py": 4,
"tests/integration/test_hermes_target.py": 4,
Expand Down Expand Up @@ -788,12 +789,6 @@
"tests/spec_conformance/test_policy_reqs.py": 4,
"tests/spec_conformance/test_portable_mcp_approval_reqs.py": 2,
"tests/spec_conformance/test_security_behavior_reqs.py": 4,
"tests/test_apm_resolver.py": 13,
"tests/test_github_downloader.py": 6,
"tests/test_github_downloader_token_precedence.py": 2,
"tests/test_gitlab_git_transport.py": 1,
"tests/test_lockfile.py": 2,
"tests/test_token_manager.py": 16,
"tests/unit/adapters/test_vscode_docker_runtime_args.py": 1,
"tests/unit/agent_plugins/test_loader.py": 2,
"tests/unit/agent_plugins/test_package_projection.py": 2,
Expand Down Expand Up @@ -853,14 +848,19 @@
"tests/unit/core/test_script_runner_execution_io.py": 2,
"tests/unit/core/test_script_trust.py": 5,
"tests/unit/core/test_tls_trust.py": 9,
"tests/unit/core/test_token_manager.py": 16,
"tests/unit/core/test_token_manager_lifecycle.py": 6,
"tests/unit/deps/test_apm_resolver.py": 13,
"tests/unit/deps/test_artifactory_orchestrator.py": 1,
"tests/unit/deps/test_clone_connect_retry.py": 7,
"tests/unit/deps/test_download_strategies_selection.py": 7,
"tests/unit/deps/test_github_downloader.py": 6,
"tests/unit/deps/test_github_downloader_input_validation.py": 9,
"tests/unit/deps/test_github_downloader_package_download.py": 12,
"tests/unit/deps/test_github_downloader_token_precedence.py": 2,
"tests/unit/deps/test_github_downloader_validation.py": 27,
"tests/unit/deps/test_lock_parent_placement_manifest.py": 3,
"tests/unit/deps/test_lockfile.py": 2,
"tests/unit/deps/test_lockfile_field_properties.py": 4,
"tests/unit/deps/test_lockfile_generator.py": 5,
"tests/unit/deps/test_package_validator_validation.py": 11,
Expand Down
54 changes: 18 additions & 36 deletions tests/quality/exact_test_duplicates.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,35 +160,25 @@
"test_registry_picker_range_grammar_gaps",
"test_revision_pin_update_rejects_malformed_tag_records"
],
"tests/test_codex_empty_string_and_defaults.py": [
"tests/unit/adapters/test_codex_empty_string_and_defaults.py": [
"TestCodexEmptyStringAndDefaults::test_codex_empty_strings_trigger_defaults",
"TestCodexEmptyStringAndDefaults::test_codex_no_overrides_gets_defaults",
"TestCodexEmptyStringAndDefaults::test_whitespace_only_treated_as_empty"
],
"tests/test_empty_string_and_defaults.py": [
"tests/unit/adapters/test_empty_string_and_defaults.py": [
"TestEmptyStringAndDefaults::test_codex_empty_strings_trigger_defaults",
"TestEmptyStringAndDefaults::test_codex_no_overrides_gets_defaults",
"TestEmptyStringAndDefaults::test_whitespace_only_treated_as_empty"
],
"tests/test_github_downloader.py": [
"TestErrorHandling::test_network_timeout_handling",
"TestWindowsCleanupHelpers::test_close_repo_none_is_safe"
],
"tests/test_token_manager.py": [
"TestIsValidCredentialToken::test_empty_string_invalid",
"TestIsValidCredentialToken::test_exactly_1024_chars_valid",
"TestIsValidCredentialToken::test_over_1024_chars_invalid",
"TestResolveCredentialFromGit::test_file_not_found_returns_none"
],
"tests/unit/core/test_experimental.py": [
"TestCoworkFlagRegistration::test_cowork_flag_is_registered",
"TestNormaliseFlagName::test_hyphens_converted_to_underscores",
"TestNormaliseFlagName::test_underscores_are_idempotent"
],
"tests/unit/core/test_token_manager.py": [
"TestResolveCredentialFromGit::test_file_not_found_returns_none"
],
"tests/unit/core/test_token_manager_lifecycle.py": [
"TestIsValidCredentialToken::test_empty_string_is_invalid",
"TestIsValidCredentialToken::test_token_exactly_1024_bytes_is_valid",
"TestIsValidCredentialToken::test_token_over_1024_bytes_is_invalid",
"TestResolveCredentialFromGit::test_returns_none_on_file_not_found"
],
"tests/unit/deps/test_download_strategies_selection.py": [
Expand All @@ -197,6 +187,10 @@
"tests/unit/deps/test_git_remote_ops.py": [
"TestValidateLsRemoteTagOutput::test_invalid_or_ambiguous_records_are_rejected"
],
"tests/unit/deps/test_github_downloader.py": [
"TestErrorHandling::test_network_timeout_handling",
"TestWindowsCleanupHelpers::test_close_repo_none_is_safe"
],
"tests/unit/install/test_validation_error_handling.py": [
"TestIsTlsFailure::test_ssl_error_returns_true"
],
Expand Down Expand Up @@ -398,12 +392,6 @@
"tests/integration/test_gemini_integration.py": [
"TestGeminiCommandIntegration::test_no_description_omits_key"
],
"tests/integration/test_git_cache_hermetic.py": [
"TestBareHasSha::test_returns_false_on_oserror",
"TestBareHasSha::test_returns_false_on_timeout",
"TestLsRemoteResolve::test_oserror_raises_runtime_error",
"TestLsRemoteResolve::test_timeout_raises_runtime_error"
],
"tests/integration/test_git_reference_resolver.py": [
"TestListRemoteRefs::test_artifactory_returns_empty_list",
"TestListRemoteRefs::test_unauthenticated_uses_noninteractive_env",
Expand Down Expand Up @@ -693,15 +681,6 @@
"TestValidationResult::test_initial_state",
"TestValidationResult::test_summary_valid_with_warnings"
],
"tests/test_apm_package_models.py": [
"TestPackageContentType::test_from_string_case_insensitive",
"TestValidationResult::test_add_error",
"TestValidationResult::test_add_warning",
"TestValidationResult::test_initial_state"
],
"tests/test_lockfile.py": [
"TestLockFile::test_read_nonexistent"
],
"tests/unit/commands/test_audit_error_handling.py": [
"TestApplyStrip::test_skips_nonexistent_files",
"TestApplyStrip::test_skips_outside_project_root",
Expand Down Expand Up @@ -788,6 +767,9 @@
"TestSplitOwnerRepo::test_empty_repo_returns_none",
"TestSplitOwnerRepo::test_no_slash_returns_none"
],
"tests/unit/deps/test_lockfile.py": [
"TestLockFile::test_read_nonexistent"
],
"tests/unit/install/test_drift_detection.py": [
"TestCheckLogger::test_scratch_root_emits_when_verbose",
"TestCheckLogger::test_scratch_root_silent_when_not_verbose"
Expand Down Expand Up @@ -961,6 +943,12 @@
"tests/unit/marketplace/test_versioned_resolver.py": [
"TestResolveMarketplacePlugin::test_plugin_not_found_raises"
],
"tests/unit/models/test_apm_package_models.py": [
"TestPackageContentType::test_from_string_case_insensitive",
"TestValidationResult::test_add_error",
"TestValidationResult::test_add_warning",
"TestValidationResult::test_initial_state"
],
"tests/unit/policy/test_discovery_logic.py": [
"TestParseRemoteUrl::test_https_ghe"
],
Expand Down Expand Up @@ -1050,12 +1038,6 @@
"tests/unit/test_exclude.py": [
"TestMatchesPattern::test_exact_match"
],
"tests/unit/test_git_cache_branch_coverage.py": [
"TestBareHasSha::test_returns_false_on_oserror",
"TestBareHasSha::test_returns_false_on_timeout",
"TestLsRemoteResolve::test_oserror_raises_runtime_error",
"TestLsRemoteResolve::test_timeout_raises_runtime_error"
],
"tests/unit/test_git_reference_resolver_resolution.py": [
"TestResolveCommitShaForRef::test_non_200_response_returns_none"
],
Expand Down
Loading
Loading