This commit is contained in:
@@ -11,4 +11,5 @@ def test_aider_command_cannot_mutate_git_configuration_or_send_analytics() -> No
|
||||
assert "--no-gitignore" in command
|
||||
assert "--no-analytics" in command
|
||||
assert "--no-auto-commits" in command
|
||||
assert command.count("/dev/null") == 2
|
||||
assert command.count("/dev/null") == 2
|
||||
assert command[-4:] == ["--edit-format", "diff", "--timeout", "60"]
|
||||
@@ -15,9 +15,12 @@ def test_policy_accepts_small_application_change() -> None:
|
||||
|
||||
|
||||
def test_policy_rejects_secrets_and_vendor_paths() -> None:
|
||||
result = evaluate_changes(ChangeSummary((".env", "vendor/foo.php"), 2, 0), settings())
|
||||
result = evaluate_changes(
|
||||
ChangeSummary((".env", "vendor/foo.php", ".aider.tags.cache.v4/cache.db"), 3, 0),
|
||||
settings(),
|
||||
)
|
||||
assert not result.allowed
|
||||
assert len(result.errors) == 2
|
||||
assert len(result.errors) == 3
|
||||
|
||||
|
||||
def test_direct_main_blocks_validator_and_migrations() -> None:
|
||||
|
||||
@@ -30,6 +30,7 @@ def test_task_contains_constraints_and_redacted_report() -> None:
|
||||
assert "secret-value" not in task
|
||||
assert "admin@example.com" not in task
|
||||
assert "Do not commit or push" in task
|
||||
assert "never mock or stub the behavior being tested" in task
|
||||
|
||||
|
||||
def test_redact_removes_extended_credentials() -> None:
|
||||
|
||||
Reference in New Issue
Block a user