feat(ci): gate pull requests on an accepted issue (#6894)

This commit is contained in:
Kartik
2026-08-14 17:05:27 +05:30
committed by GitHub
parent ef6f51d977
commit 290de24bb8
35 changed files with 2029 additions and 967 deletions
+24
View File
@@ -0,0 +1,24 @@
# Python SDK tests (`tests/`)
pytest suite for the `mem0/` package.
## Commands
```bash
make install_all # optional deps; several tests need them
make test # pytest tests/
make test-py-3.9 # pin a Python version (3.9 through 3.12)
pytest tests/llms/test_openai.py::test_generate_response # single test
```
## Conventions
- Files are named `test_<module>.py`.
- Provider tests mirror the source tree: `tests/<category>/<provider_name>/`.
- pytest-mock for mocks, pytest-asyncio for the async surface.
- Ruff line length **120**, matching `mem0/`. See [`../mem0/AGENTS.md`](../mem0/AGENTS.md).
- Mock the provider SDK, never the code under test. A test that asserts the implementation back at itself is worse than no test.
- Bug fixes need a regression test that fails without the fix. Write it first and watch it fail.
Tests for other packages live with those packages: `mem0-ts/` (jest), `cli/python/tests/` (pytest), `cli/node/` (vitest), and each directory under `integrations/`.
+1
View File
@@ -0,0 +1 @@
AGENTS.md