Skip to content

Correct AGENTS.md fixture guidance#708

Merged
tony merged 1 commit into
masterfrom
fix-707-agents-fixtures
Jul 12, 2026
Merged

Correct AGENTS.md fixture guidance#708
tony merged 1 commit into
masterfrom
fix-707-agents-fixtures

Conversation

@tony

@tony tony commented Jul 11, 2026

Copy link
Copy Markdown
Member

Summary

Correct contributor guidance so regular pytest tests use the server and session fixtures and derive windows and panes from a session.

Document the actual doctest namespace, the TestServer factory bound to Server, the explicit import for the real class, and the socket-path lookup for named fixture servers.

Verification

  • uv run ruff format --check .
  • uv run ruff check .
  • uv run mypy .
  • uv run py.test --reruns 0 -q (1342 passed, 1 skipped)

Closes #707

why: Prevent contributors from requesting nonexistent window and pane
fixtures or treating the doctest Server factory as the class.

what:
- Separate regular pytest fixtures from doctest namespace values
- Show how tests derive windows and panes from the session fixture
- Document the real Server import and socket-path lookup
@codecov

codecov Bot commented Jul 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.78%. Comparing base (e67075a) to head (c7848ba).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #708      +/-   ##
==========================================
- Coverage   51.86%   51.78%   -0.09%     
==========================================
  Files          25       25              
  Lines        3638     3638              
  Branches      733      733              
==========================================
- Hits         1887     1884       -3     
- Misses       1445     1448       +3     
  Partials      306      306              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tony tony merged commit 9565d47 into master Jul 12, 2026
15 checks passed
@tony tony deleted the fix-707-agents-fixtures branch July 12, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AGENTS.md misdescribes the test fixtures: no window/pane fixtures exist, and Server in doctests is a TestServer partial

1 participant