Rename project from SmartTools to CmdForge
Major rename operation: - Rename Python package: smarttools -> cmdforge - Update CLI entry point: smarttools -> cmdforge - Update all imports and module references - Update pyproject.toml with new name, URLs, entry point - Update all HTML templates with new branding - Update documentation (CLAUDE.md, README.md, docs/*, wiki/*) - Update environment variables: - SMARTTOOLS_ENV -> CMDFORGE_ENV - SMARTTOOLS_REGISTRY_DB -> CMDFORGE_REGISTRY_DB - SMARTTOOLS_TOKEN -> CMDFORGE_TOKEN - SMARTTOOLS_REGISTRY_* -> CMDFORGE_REGISTRY_* - Update Dockerfile and docker-compose.yml - Update tests to use new package name - Update scripts and examples - Update package.json and tailwind.config.js All 158 unit tests pass. The CLI is working correctly with the new cmdforge command. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
This commit is contained in:
+8
-8
@@ -1,8 +1,8 @@
|
||||
# SmartTools Test Suite
|
||||
# CmdForge Test Suite
|
||||
|
||||
## Overview
|
||||
|
||||
The test suite covers the core SmartTools modules with **158 unit tests** organized into four main test files:
|
||||
The test suite covers the core CmdForge modules with **158 unit tests** organized into four main test files:
|
||||
|
||||
| Test File | Module Tested | Test Count | Description |
|
||||
|-----------|---------------|------------|-------------|
|
||||
@@ -28,7 +28,7 @@ pytest tests/test_tool.py -v
|
||||
pytest tests/test_runner.py::TestSubstituteVariables -v
|
||||
|
||||
# Run with coverage
|
||||
pytest tests/ --cov=smarttools --cov-report=html
|
||||
pytest tests/ --cov=cmdforge --cov-report=html
|
||||
```
|
||||
|
||||
## Test Categories
|
||||
@@ -83,7 +83,7 @@ pytest tests/ --cov=smarttools --cov-report=html
|
||||
Run with a local registry server:
|
||||
```bash
|
||||
# Start registry server
|
||||
python -m smarttools.registry.app
|
||||
python -m cmdforge.registry.app
|
||||
|
||||
# Run integration tests
|
||||
pytest tests/test_registry_integration.py -v -m integration
|
||||
@@ -97,15 +97,15 @@ Common fixtures used across tests:
|
||||
@pytest.fixture
|
||||
def temp_tools_dir(tmp_path):
|
||||
"""Redirect TOOLS_DIR and BIN_DIR to temp directory."""
|
||||
with patch('smarttools.tool.TOOLS_DIR', tmp_path / ".smarttools"):
|
||||
with patch('smarttools.tool.BIN_DIR', tmp_path / ".local" / "bin"):
|
||||
with patch('cmdforge.tool.TOOLS_DIR', tmp_path / ".cmdforge"):
|
||||
with patch('cmdforge.tool.BIN_DIR', tmp_path / ".local" / "bin"):
|
||||
yield tmp_path
|
||||
|
||||
@pytest.fixture
|
||||
def temp_providers_file(tmp_path):
|
||||
"""Redirect providers.yaml to temp directory."""
|
||||
providers_file = tmp_path / ".smarttools" / "providers.yaml"
|
||||
with patch('smarttools.providers.PROVIDERS_FILE', providers_file):
|
||||
providers_file = tmp_path / ".cmdforge" / "providers.yaml"
|
||||
with patch('cmdforge.providers.PROVIDERS_FILE', providers_file):
|
||||
yield providers_file
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user