chore: make test без обёртки над кодом 5 pytest; отметки Task 6 / 3.1

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Andrey Epifancev 2026-10-04 02:38:17 +04:00
parent 5b913803b4
commit 6a8f0d119a
3 changed files with 3 additions and 4 deletions

View File

@ -16,9 +16,8 @@ lint:
cd api && $(BIN)/ruff format --check .
cd api && $(BIN)/mypy src
# Код 5 («тесты не собраны») допускаем только до появления первых тестов; после — убрать обёртку
test:
cd api && $(BIN)/pytest -m "not integration"; rc=$$?; if [ $$rc -eq 5 ]; then echo "тестов пока нет (pytest exit 5) — допустимо"; exit 0; fi; exit $$rc
cd api && $(BIN)/pytest -m "not integration"
test-integration:
cd api && $(BIN)/pytest -m integration

View File

@ -39,7 +39,7 @@
### Task 6: [3.1] `api/contracts/` — копии трёх схем + `examples/` из `../docs/contracts`
- [ ] `api/contracts/` — копии трёх схем + `examples/` из `../docs/contracts`; `src/contract/` — pydantic-модели (`RecognitionRequest`, `RecognitionResultMessage` со статусами `processing | done | needs_check | error`, `RecognitionResult`, `OsvDocument`, `StatementDocument`, деньги как `Decimal` ↔ строка); `tests/unit/test_contract.py` — идентичность с docs (skip без docs), валидация примеров, round-trip модели → JSON → схема; проверка: тесты зелёные
- [x] `api/contracts/` — копии трёх схем + `examples/` из `../docs/contracts`; `src/contract/` — pydantic-модели (`RecognitionRequest`, `RecognitionResultMessage` со статусами `processing | done | needs_check | error`, `RecognitionResult`, `OsvDocument`, `StatementDocument`, деньги как `Decimal` ↔ строка); `tests/unit/test_contract.py` — идентичность с docs (skip без docs), валидация примеров, round-trip модели → JSON → схема; проверка: тесты зелёные
### Task 7: [4.1] `src/parser/__init__.py`

View File

@ -25,7 +25,7 @@
## 3. Контракт
- [ ] 3.1 `api/contracts/` — копии трёх схем + `examples/` из `../docs/contracts`; `src/contract/` — pydantic-модели
- [x] 3.1 `api/contracts/` — копии трёх схем + `examples/` из `../docs/contracts`; `src/contract/` — pydantic-модели
(`RecognitionRequest`, `RecognitionResultMessage` со статусами `processing | done | needs_check | error`,
`RecognitionResult`, `OsvDocument`, `StatementDocument`, деньги как `Decimal` ↔ строка); `tests/unit/test_contract.py`
— идентичность с docs (skip без docs), валидация примеров, round-trip модели → JSON → схема; проверка: тесты зелёные