참고소스 수정본
This commit is contained in:
16
참고/ontocast-main/.cursor/rules/tests.mdc
Normal file
16
참고/ontocast-main/.cursor/rules/tests.mdc
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
description: "Testing guidelines"
|
||||
globs:
|
||||
- "test/**/*.py"
|
||||
alwaysApply: false
|
||||
---
|
||||
|
||||
# Testing Guidelines
|
||||
- Use `pytest` with descriptive test function names.
|
||||
- Prefer fixtures over global state.
|
||||
- For async code, use `pytest-asyncio`.
|
||||
- Ensure test coverage for:
|
||||
- Pydantic model validation
|
||||
- Env config via `BaseSettings`
|
||||
- Error cases and edge cases
|
||||
- Run tests with `uv run pytest test`.
|
||||
Reference in New Issue
Block a user