From 2ac4c34044c8989594149c5a8668ebf8a6929ea3 Mon Sep 17 00:00:00 2001 From: m4 Date: Wed, 12 Aug 2026 19:53:59 +0800 Subject: [PATCH] docs: correct backend test command to uv run pytest --- .../plans/2026-08-12-config-import-export.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/superpowers/plans/2026-08-12-config-import-export.md b/docs/superpowers/plans/2026-08-12-config-import-export.md index d64ea20..89e6455 100644 --- a/docs/superpowers/plans/2026-08-12-config-import-export.md +++ b/docs/superpowers/plans/2026-08-12-config-import-export.md @@ -20,7 +20,7 @@ - i18n catalogs zh/en are updated in lockstep (same keys, same ICU vars) and the new domain module is registered in both `index.ts` files AND in the module list of `src/i18n/messages/messages.test.ts` (that test hardcodes the list — forgetting it fails the suite). - Backend `expected_revision` is deprecated (last-write-wins); import bodies still send the current revision because the BFF PUT route requires it, but no 409/conflict handling is built. - WebUI tests: vitest node env, include pattern `src/**/*.test.ts` only (no Testing Library, no jsdom, no `.tsx` tests). All testable logic lives in pure `.ts` modules. -- Test commands — backend: `cd /Users/m4/Projects/EvoSci/OriginEvoScientist/EvoScientist && python -m pytest tests/test_config_export.py -v`. WebUI: `cd /Users/m4/Projects/EvoSci/OriginEvoScientist/EvoScientist-WebUI && npx vitest run ` and `npx tsc --noEmit`. +- Test commands — backend: `cd /Users/m4/Projects/EvoSci/OriginEvoScientist/EvoScientist && uv run pytest tests/test_config_export.py -v` (plain `uv run pytest` has no pytest module). WebUI: `cd /Users/m4/Projects/EvoSci/OriginEvoScientist/EvoScientist-WebUI && npx vitest run ` and `npx tsc --noEmit`. --- @@ -222,7 +222,7 @@ def test_image_export_requires_export_scope(client): - [ ] **Step 2: Run test to verify it fails** -Run: `cd /Users/m4/Projects/EvoSci/OriginEvoScientist/EvoScientist && python -m pytest tests/test_config_export.py -v` +Run: `cd /Users/m4/Projects/EvoSci/OriginEvoScientist/EvoScientist && uv run pytest tests/test_config_export.py -v` Expected: FAIL — 404 on both `/export` paths (routes do not exist). - [ ] **Step 3: Implement the export routes** @@ -356,11 +356,11 @@ Note: `_image_generation_export` calls the module-level `load_image_generation_s - [ ] **Step 4: Run tests to verify they pass** -Run: `cd /Users/m4/Projects/EvoSci/OriginEvoScientist/EvoScientist && python -m pytest tests/test_config_export.py -v` +Run: `cd /Users/m4/Projects/EvoSci/OriginEvoScientist/EvoScientist && uv run pytest tests/test_config_export.py -v` Expected: 6 passed. Also run the neighboring suites to catch regressions: -`python -m pytest tests/test_model_registry_http.py tests/test_image_generation_http.py -q` +`uv run pytest tests/test_model_registry_http.py tests/test_image_generation_http.py -q` Expected: all pass (note: the user's WIP may leave some image tests failing — if a failure exists, re-run that single test on a clean checkout via `git stash` is FORBIDDEN; instead report the failing test name and whether it touches code this task changed; only failures caused by THIS task's diff block completion). - [ ] **Step 5: Commit** @@ -2012,7 +2012,7 @@ git commit -m "feat(components): wire config export/import into registry and ima - [ ] **Step 1: Backend suite** -Run: `cd /Users/m4/Projects/EvoSci/OriginEvoScientist/EvoScientist && python -m pytest tests/test_config_export.py tests/test_model_registry_http.py tests/test_image_generation_http.py -q` +Run: `cd /Users/m4/Projects/EvoSci/OriginEvoScientist/EvoScientist && uv run pytest tests/test_config_export.py tests/test_model_registry_http.py tests/test_image_generation_http.py -q` Expected: all pass (excluding clearly pre-existing WIP failures — report any by name). - [ ] **Step 2: WebUI suite + typecheck**