refactor: Remove deprecated query and schema commands and update all tests
Some checks failed
Test Suite / unit-tests (3.11) (push) Has been cancelled
Test Suite / unit-tests (3.12) (push) Has been cancelled
Test Suite / integration-tests (push) Has been cancelled
Test Suite / e2e-tests (push) Has been cancelled
Test Suite / performance-tests (push) Has been cancelled
Test Suite / code-quality (push) Has been cancelled
Test Suite / security-scan (push) Has been cancelled
Test Suite / test-summary (push) Has been cancelled

- Remove deprecated 'query' command (replaced by 'db-query')
- Remove deprecated 'schema' command (replaced by 'db-schema')
- Remove 4 obsolete tests that tested deprecated functionality
- Update all remaining tests to use new db-prefixed command names
- CLI now has clean, consistent command structure with proper prefixes
- All 478 tests passing after cleanup

This completes the CLI consistency convention implementation where all
subsystem commands follow the "*-stats" pattern and use proper prefixes.

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-30 23:33:43 +02:00
parent 3222a474c9
commit c25795fb79
6 changed files with 25 additions and 204 deletions

View File

@@ -262,12 +262,12 @@ class TestIssue4CLIIntegration:
"""Test that the CLI schema command exists and is properly configured."""
from markitect.cli import cli
# Check that 'schema' command is registered
assert 'schema' in cli.commands
# Check that 'db-schema' command is registered
assert 'db-schema' in cli.commands
# Verify the command has the expected attributes
schema_command = cli.commands['schema']
assert schema_command.name == 'schema'
schema_command = cli.commands['db-schema']
assert schema_command.name == 'db-schema'
assert schema_command.help is not None