mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-07-09 17:08:29 +00:00
Remove memory-plugin assumptions from root and non-plugin DOX contracts so disabled plugins are not implied as available runtime behavior. Keep the memory plugin documented only in its owning plugin subtree and mark it optional from the parent plugin index.
34 lines
1.3 KiB
Markdown
34 lines
1.3 KiB
Markdown
# Tests DOX
|
|
|
|
## Purpose
|
|
|
|
- Own pytest regression, security, integration, and contract tests.
|
|
- Keep tests focused on behavior that should remain stable across framework changes.
|
|
|
|
## Ownership
|
|
|
|
- Test files live directly under `tests/` and are named for the behavior or subsystem they cover.
|
|
- Shared fixtures should be added only when multiple tests need them.
|
|
- Runtime artifacts created during tests should use pytest temporary directories or existing isolated test helpers.
|
|
|
|
## Local Contracts
|
|
|
|
- Tests must not require real API keys, network-only services, private user data, or local `usr/` runtime state.
|
|
- Keep tests deterministic and isolated from existing chats, uploads, downloads, plugin state, and settings.
|
|
- Prefer exercising public helper/API contracts over fragile implementation details when practical.
|
|
- Security regression tests should assert the protected behavior directly.
|
|
|
|
## Work Guidance
|
|
|
|
- Add focused tests near the affected subsystem's existing tests.
|
|
- Use descriptive test names that state the regression or contract.
|
|
- Avoid broad sleeps or real-time dependencies; use monkeypatching or controlled clocks where possible.
|
|
|
|
## Verification
|
|
|
|
- Run `pytest` for broad changes.
|
|
- Run `pytest tests/test_name.py` for narrow changes and mention any broader test gaps at closeout.
|
|
|
|
## Child DOX Index
|
|
|
|
No child DOX files.
|