fix: update tests to use renamed tdd- prefixed make targets

- Update test_make_workspace_status_command → test_make_tdd_status_command
- Update test_make_add_test_command_without_workspace → test_make_tdd_add_test_command_without_workspace
- Change test subprocess calls from 'workspace-status' to 'tdd-status'
- Change test subprocess calls from 'add-test' to 'tdd-add-test'

All 20 tests now pass successfully with the new target names.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-22 02:17:04 +02:00
parent 41193d0746
commit 68af98049e

View File

@@ -29,22 +29,22 @@ class TestWorkflowIntegration:
yield config
shutil.rmtree(temp_dir)
def test_make_workspace_status_command(self):
"""Test that make workspace-status command works correctly."""
result = subprocess.run(['make', 'workspace-status'],
def test_make_tdd_status_command(self):
"""Test that make tdd-status command works correctly."""
result = subprocess.run(['make', 'tdd-status'],
capture_output=True, text=True)
assert result.returncode == 0, "workspace-status command should succeed"
assert result.returncode == 0, "tdd-status command should succeed"
# Should show clean workspace when no active workspace
assert ("No active issue workspace" in result.stdout or
"Workspace directory exists but no current issue file" in result.stdout)
def test_make_add_test_command_without_workspace(self):
"""Test that make add-test provides proper error when no workspace."""
result = subprocess.run(['make', 'add-test'],
def test_make_tdd_add_test_command_without_workspace(self):
"""Test that make tdd-add-test provides proper error when no workspace."""
result = subprocess.run(['make', 'tdd-add-test'],
capture_output=True, text=True)
assert result.returncode != 0, "add-test command should fail when no workspace"
assert result.returncode != 0, "tdd-add-test command should fail when no workspace"
assert "No active issue workspace" in result.stdout
def test_cli_integration_basic(self):