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
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:
@@ -55,7 +55,7 @@ class TestOutputFormatting:
|
||||
mock_db_instance.execute_query.return_value = self.sample_data
|
||||
|
||||
result = self.runner.invoke(cli, [
|
||||
'query', 'SELECT * FROM markdown_files',
|
||||
'db-query', 'SELECT * FROM markdown_files',
|
||||
'--format', 'table'
|
||||
])
|
||||
|
||||
@@ -84,7 +84,7 @@ class TestOutputFormatting:
|
||||
mock_db_instance.execute_query.return_value = self.sample_data
|
||||
|
||||
# Without specifying format
|
||||
result = self.runner.invoke(cli, ['query', 'SELECT * FROM markdown_files'])
|
||||
result = self.runner.invoke(cli, ['db-query', 'SELECT * FROM markdown_files'])
|
||||
|
||||
if result.exit_code != 0:
|
||||
print("Command output:", result.output)
|
||||
@@ -101,7 +101,7 @@ class TestOutputFormatting:
|
||||
Issue #14: Multiple output format support
|
||||
"""
|
||||
result = self.runner.invoke(cli, [
|
||||
'query', 'SELECT * FROM markdown_files',
|
||||
'db-query', 'SELECT * FROM markdown_files',
|
||||
'--format', 'invalid_format'
|
||||
])
|
||||
|
||||
@@ -139,7 +139,7 @@ class TestSchemaFormatting:
|
||||
mock_db_mgr.return_value = mock_db_instance
|
||||
mock_db_instance.get_schema.return_value = self.schema_data
|
||||
|
||||
result = self.runner.invoke(cli, ['schema', '--format', 'table'])
|
||||
result = self.runner.invoke(cli, ['db-schema', '--format', 'table'])
|
||||
|
||||
assert result.exit_code == 0
|
||||
assert 'markdown_files' in result.output
|
||||
@@ -159,7 +159,7 @@ class TestSchemaFormatting:
|
||||
mock_db_mgr.return_value = mock_db_instance
|
||||
mock_db_instance.get_schema.return_value = self.schema_data
|
||||
|
||||
result = self.runner.invoke(cli, ['schema', '--format', 'yaml'])
|
||||
result = self.runner.invoke(cli, ['db-schema', '--format', 'yaml'])
|
||||
|
||||
assert result.exit_code == 0
|
||||
try:
|
||||
@@ -259,8 +259,8 @@ class TestFormattingConsistency:
|
||||
Issue #14: Multiple output format support
|
||||
"""
|
||||
commands = [
|
||||
['query', 'SELECT COUNT(*) FROM markdown_files'],
|
||||
['schema'],
|
||||
['db-query', 'SELECT COUNT(*) FROM markdown_files'],
|
||||
['db-schema'],
|
||||
['metadata', 'test.md']
|
||||
]
|
||||
|
||||
@@ -280,8 +280,8 @@ class TestFormattingConsistency:
|
||||
Issue #14: Multiple output format support
|
||||
"""
|
||||
commands = [
|
||||
['query', 'SELECT COUNT(*) FROM markdown_files'],
|
||||
['schema'],
|
||||
['db-query', 'SELECT COUNT(*) FROM markdown_files'],
|
||||
['db-schema'],
|
||||
['metadata', 'test.md']
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user