video-research-mcp / tests
AGENTS.md23 starsChanged 38 days agoMITView on GitHub
Applies to files under tests/.
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,700 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- src/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- av-eventsSkill
- creative-concept-designSkill
- educational-explainerSkill
- ffmpeg-productionSkill
- footage-editSkill
- gemini-visualizeSkill
- gr-advisorSkill
- hardware-evidence-captureSkill
- image-generationSkill
- mlflow-tracesSkill
- movie-commentarySkill
- plugin-maintenanceSkill
- qwen-image-integrationSkill
- qwen-video-integrationSkill
- research-brief-builderSkill
- research-visualization-blenderSkill
- research-visualization-freecadSkill
- reverse-search-video-frameSkill
- spatial-video-analysisSkill
- tts-productionSkill
- video-explainerSkill
- video-generationSkill
- video-productionSkill
- video-researchSkill
- video-to-skillSkill
- video-translationSkill
- weaviate-setupSkill
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
Test framework is pytest with asyncio_mode = "auto".
- Distinctive: line 8
Keep tests unit-level with mocked Gemini.
- Distinctive: line 26
Import tool functions directly from module paths.
- Very specific: line 30
Use GIVEN/WHEN/THEN docstrings for non-trivial tests.
- Distinctive: line 36
Use passthrough retry mocks where session tests depend on retry helpers.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md (tests scope)
Applies to files under tests/.
Testing Patterns
- Test framework is pytest with
asyncio_mode = "auto"; avoid unnecessary@pytest.mark.asyncio. - Keep tests unit-level with mocked Gemini; no real API calls.
- Standard run command:
PYTHONPATH=src uv run pytest tests/ -v.
Fixture Expectations
mock_gemini_client: patchesGeminiClient.get(),.generate(),.generate_structured(),.generate_json_validated().clean_config: resets config singleton between tests.mock_weaviate_client: patches Weaviate client + collection.mock_weaviate_disabled: ensures Weaviate is disabled (depends onclean_config)._unwrap_fastmcp_tools: ensures tools remain callable._set_dummy_api_key: sets non-real API key for tests._disable_tracing(autouse): setsGEMINI_TRACING_ENABLED=false._isolate_dotenv: blocks loading real.env._isolate_upload_cache: isolates upload cache to temp dir._isolate_durable_jobs: isolatesVRM_JOB_DBin a temporary SQLite database.
Test Style
- Import tool functions directly from module paths.
- Mock external services, not internal logic under test.
- Assert structured tool errors via
make_tool_error()shape. - For structured-output tests, return concrete model instances from mocked
generate_structured. - Use GIVEN/WHEN/THEN docstrings for non-trivial tests.
Context Cache Tests
- Clear
_registry,_pending, and_suppressedstate in fixtures. - Patch registry path to temp directories; never touch real filesystem.
- Use passthrough retry mocks where session tests depend on retry helpers.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

