agentleFS
docdyhrdocdyhr/simplenote-mcp-server/tests/AGENTS.md

simplenote-mcp-server / tests

AGENTS.md19 starsChanged 13 months agoMITView on GitHub

Primary, CI-wired pytest tree (testpaths = ["tests"] in pyproject.toml) — 60 test files. All new tests go here, not in the legacy simplenote_mcp/tests/ tree (see that folder's AGENTS.md).

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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 repository6 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Run with SIMPLENOTE_OFFLINE_MODE=true — real Simplenote credentials must never be required to run this suite.

    line 16
  2. Very specific:

    Do not merge this tree's pytest invocation with simplenote_mcp/tests/ — both mutate process-global singletons (see …

    line 19
  3. Very specific:

    Prefer existing fixtures (mock_simplenote_client, authenticated_context) over hand-rolled mocks.

    line 25

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

tests/

Purpose

Primary, CI-wired pytest tree (testpaths = ["tests"] in pyproject.toml) — 60 test files. All new tests go here, not in the legacy simplenote_mcp/tests/ tree (see that folder's AGENTS.md).

Ownership

  • One test_*.py per source module/feature area (e.g. test_cache.py, test_advanced_search.py, test_tool_handlers*.py, test_auth*.py, test_config.py).
  • conftest.py — shared fixtures, all autouse unless noted: isolate_token_file_cache (redirects the keychain token-cache path to tmp_path), reset_write_budget, reset_config_cache, plus non-autouse mock_simplenote_client, simplenote_env_vars, server_context, authenticated_context.
  • fixtures_rate_limit.py, fixtures_retry.py — shared fixture modules for rate-limit/retry test scenarios.
  • unit/ — currently empty; test_server_comprehensive.py.disabled / test_server_integration.py.disabled at this level are intentionally disabled, not stale cruft to delete without checking why first.

Local Contracts

  • Run with SIMPLENOTE_OFFLINE_MODE=true — real Simplenote credentials must never be required to run this suite.
  • Coverage gate: --cov-fail-under=75 (pyproject.toml addopts).
  • Markers available: unit, integration, perf, security, slow, network, auth, offline (--strict-markers enforced — unregistered markers fail collection).
  • Do not merge this tree's pytest invocation with simplenote_mcp/tests/ — both mutate process-global singletons (see simplenote_mcp/server/monitoring/AGENTS.md) and only reset state for their own tests.
  • Offline-mode mock client (server.py::get_simplenote_client()) returns ({}, 0) from add_note/get_note/update_note — don't write assertions expecting a populated note['key'] against the raw mock.

Work Guidance

  • New tool handler → add tests here, not in simplenote_mcp/tests/, per simplenote_mcp/server/AGENTS.md's tool-handler pattern.
  • Prefer existing fixtures (mock_simplenote_client, authenticated_context) over hand-rolled mocks; grep for the symbol's real import path before mocking — mock where it's used, not where it's defined.

Verification

  • make test-fast — SIMPLENOTE_OFFLINE_MODE=true .venv/bin/pytest tests/ -x -q --timeout=30

Child DOX Index

None.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.