chore: snapshot current project updates
This commit is contained in:
@@ -171,8 +171,9 @@ class TestDryRunSimulation:
|
||||
def test_dry_run_logs_operations(self, execution_engine, sample_plan, caplog):
|
||||
"""Test that dry-run mode logs what would happen."""
|
||||
caplog.set_level(logging.INFO)
|
||||
|
||||
execution_engine.execute_plan(sample_plan, mode="dry-run")
|
||||
verbose_engine = ExecutionEngine(logger=execution_engine.logger, verbose_operations=True)
|
||||
|
||||
verbose_engine.execute_plan(sample_plan, mode="dry-run")
|
||||
|
||||
# Check that dry-run operations are logged
|
||||
assert "[DRY-RUN]" in caplog.text
|
||||
@@ -242,8 +243,8 @@ class TestDryRunSimulation:
|
||||
assert len(results) == 1
|
||||
assert not results[0].success
|
||||
assert "Conflict" in results[0].error_message
|
||||
assert summary["failed"] == 1
|
||||
assert summary["skipped"] == 1 # Conflicts are also counted as skipped
|
||||
assert summary["failed"] == 0
|
||||
assert summary["skipped"] == 1
|
||||
|
||||
|
||||
class TestExecuteMode:
|
||||
@@ -365,7 +366,7 @@ class TestExecuteMode:
|
||||
# Operation should be skipped
|
||||
assert not results[0].success
|
||||
assert "Conflict" in results[0].error_message
|
||||
assert summary["failed"] == 1
|
||||
assert summary["failed"] == 0
|
||||
assert summary["skipped"] == 1
|
||||
|
||||
# Source file should still exist
|
||||
|
||||
Reference in New Issue
Block a user