- Required: tests for every new command and every credential resolution path.
- Current count: ~122 Python tests across 5 test files.
- Test files mirror
src/devbrief/structure:test_cache.py— cache module + repo cache integrationtest_credentials.py— credential resolution + auth commandtest_logs.py— log parser, ring buffer, polling endpointstest_github.py— GitHub fetcherstest_display.py— Rich display functions
- Always mock credential reads in tests — never use real API keys.
- Mock at the
devbrief.core.credentialsboundary, not deeper.
uv run pytest
- Current count: 12
#[cfg(test)]tests inrust/. dev-dependenciesmust includetempfilefor filesystem tests.
PYO3_BUILD_EXTENSION_MODULE=1 cargo test --manifest-path rust/Cargo.toml
See rust.md for why this env var is required.
ci.ymlruns lint + type-check + Python tests on every PR and push tomain.rust-checkCI job runs Rust tests withPYO3_BUILD_EXTENSION_MODULE=1set automatically.