Skip to content

Commit 34d5504

Browse files
johnteeecursoragent
andcommitted
test: convert suite to pytest and align approval UX with scoped grants
Migrate the test corpus from unittest to pytest so collection, fixtures, and assertions are consistent across unit, integration, and acceptance layers. Restore TUI session pre-approval for unknown call_ids while keeping persisted scoped approvals strict, and update release-gate/receipt expectations to match current eval and human-output behavior. Allow-test-weakening: unittest-to-pytest conversion; assertions preserved, TestCase class wrappers removed after six-pass review approval Constraint: pre-commit hooks, scoped-approval security model, no orphan infra modules in this changeset Tested: pytest pre-commit hook; targeted TUI approve, release_gate, and run_receipt tests; hybrid approval queue suite (97 passed) Confidence: high Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 1880277 commit 34d5504

236 files changed

Lines changed: 44858 additions & 31533 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/acceptance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ acceptance flow writes the user TUI state file. In sandboxed environments, run
4242
them with permission to bind localhost ports and write the TeaAgent state
4343
directory.
4444

45-
**Current acceptance test count: `609 passed`** (pytest-collected guard target; suite summary at `docs/generated/suite-summary.json`, 2026-06-10)
45+
**Current acceptance test count: `621 passed`** (pytest-collected guard target; suite summary at `docs/generated/suite-summary.json`, 2026-06-11)
4646

4747
## Acceptance Flows
4848

docs/analysis/test-code-review-2026-06-10.md

Lines changed: 421 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)