test: add pytest suite for core modules

- Add pytest dependency and config to pyproject.toml
- Test project_root: env var priority, fallback, directory creation
- Test CLI: help, version, subcommands, default behavior, options
This commit is contained in:
Zhengshou Lai
2026-04-23 09:00:44 +08:00
parent bb39b80d06
commit 29fafc39db
4 changed files with 186 additions and 0 deletions
+7
View File
@@ -11,6 +11,13 @@ dependencies = [
[project.scripts]
myclaude = "myclaude.cli:cli"
[dependency-groups]
dev = ["pytest>=8.0"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"