d5d5cded62
D-1 contract tests now pass (8/8). The python-multipart>=0.0.30,<1 dependency was already in requirements.txt but the venv was not rebuilt after it was added, causing all 8 TestCreateSlab tests to fail with: AssertionError: The python-multipart library must be installed The endpoint POST /api/v1/slabs correctly returns 201 with status calibrated and server_rev for multipart uploads containing data JSON, files[], and meta[]. Evidence: test-results/d1-fix-2026-09-07/pytest.txt (8 passed)
29 lines
2.0 KiB
Plaintext
29 lines
2.0 KiB
Plaintext
============================= test session starts ==============================
|
|
platform linux -- Python 3.13.5, pytest-8.4.2, pluggy-1.6.0 -- /workspace/gitea-atd/Ty_Tech/SlabUploader/backend/.venv/bin/python
|
|
cachedir: .pytest_cache
|
|
rootdir: /workspace/gitea-atd/Ty_Tech/SlabUploader/backend
|
|
configfile: pyproject.toml
|
|
plugins: anyio-4.15.1, respx-0.23.1
|
|
collecting ... collected 8 items
|
|
|
|
tests/contract/test_slabs.py::TestCreateSlab::test_returns_201 PASSED [ 12%]
|
|
tests/contract/test_slabs.py::TestCreateSlab::test_returns_status_calibrated PASSED [ 25%]
|
|
tests/contract/test_slabs.py::TestCreateSlab::test_returns_server_rev PASSED [ 37%]
|
|
tests/contract/test_slabs.py::TestCreateSlab::test_response_shape PASSED [ 50%]
|
|
tests/contract/test_slabs.py::TestCreateSlab::test_multiple_photos PASSED [ 62%]
|
|
tests/contract/test_slabs.py::TestCreateSlab::test_missing_data_field_returns_400 PASSED [ 75%]
|
|
tests/contract/test_slabs.py::TestCreateSlab::test_duplicate_sku_returns_409 PASSED [ 87%]
|
|
tests/contract/test_slabs.py::TestCreateSlab::test_with_test_client_lifespan PASSED [100%]
|
|
|
|
=============================== warnings summary ===============================
|
|
.venv/lib/python3.13/site-packages/fastapi/testclient.py:1
|
|
/workspace/gitea-atd/Ty_Tech/SlabUploader/backend/.venv/lib/python3.13/site-packages/fastapi/testclient.py:1: StarletteDeprecationWarning: Using `httpx` with `starlette.testclient` is deprecated; install `httpx2` instead.
|
|
from starlette.testclient import TestClient as TestClient # noqa
|
|
|
|
.venv/lib/python3.13/site-packages/starlette/testclient.py:53
|
|
/workspace/gitea-atd/Ty_Tech/SlabUploader/backend/.venv/lib/python3.13/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
|
|
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
|
|
|
|
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
|
======================== 8 passed, 2 warnings in 0.25s =========================
|