mirror of
https://github.com/umbra2728/ctfd-mcp.git
synced 2026-02-08 14:28:12 +03:00
test: migrate to pytest
Replace unittest-based coverage with pytest and update CI/docs to run the new suite.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# CTFd MCP server (user scope)
|
||||
|
||||

|
||||
[](https://github.com/umbra2728/ctfd-mcp/releases)
|
||||
[](LICENSE)
|
||||
[](https://www.python.org/downloads/)
|
||||
@@ -112,14 +113,14 @@ If something breaks or you have questions, reach out:
|
||||
|
||||
## Testing
|
||||
|
||||
- Run `uv run python -m tests.test_ctfd_client` (requires a real `CTFD_URL` plus token or username/password) to exercise challenge fetching/submission flows.
|
||||
- Run `uv run pytest`.
|
||||
- Timeouts are configurable via env: `CTFD_TIMEOUT` (total), `CTFD_CONNECT_TIMEOUT`, `CTFD_READ_TIMEOUT` (seconds). Defaults are 20s total / 10s connect / 15s read.
|
||||
|
||||
## Development
|
||||
|
||||
- Dev dependencies: `uv sync --group dev`
|
||||
- Lint/format: `uv run ruff check .` and `uv run ruff format .`
|
||||
- Tests: `uv run python -m unittest discover -s tests`
|
||||
- Tests: `uv run pytest`
|
||||
- Pre-commit: `uv run pre-commit install` (see `CONTRIBUTING.md`)
|
||||
|
||||
## License
|
||||
|
||||
Reference in New Issue
Block a user