============================= 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/python3
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 39 items

tests/unit/test_aes.py::TestAESRoundTrip::test_roundtrip_username PASSED [  2%]
tests/unit/test_aes.py::TestAESRoundTrip::test_roundtrip_password PASSED [  5%]
tests/unit/test_aes.py::TestAESRoundTrip::test_roundtrip_empty_string PASSED [  7%]
tests/unit/test_aes.py::TestAESRoundTrip::test_roundtrip_unicode PASSED  [ 10%]
tests/unit/test_aes.py::TestAESRoundTrip::test_roundtrip_special_chars PASSED [ 12%]
tests/unit/test_aes.py::TestAESRoundTrip::test_ciphertext_is_bytes PASSED [ 15%]
tests/unit/test_aes.py::TestAESRoundTrip::test_ciphertext_starts_with_nonce PASSED [ 17%]
tests/unit/test_aes.py::TestAESRoundTrip::test_ciphertext_different_from_plaintext PASSED [ 20%]
tests/unit/test_aes.py::TestAESRoundTrip::test_ciphertext_changes_each_call PASSED [ 23%]
tests/unit/test_aes.py::TestFreshNonce::test_nonce_differs_across_encryptions PASSED [ 25%]
tests/unit/test_aes.py::TestFreshNonce::test_multiple_encryptions_all_unique_nonces PASSED [ 28%]
tests/unit/test_aes.py::TestTamperedCiphertext::test_tampered_body_raises_authentication_error PASSED [ 30%]
tests/unit/test_aes.py::TestTamperedCiphertext::test_truncated_ciphertext_raises_error PASSED [ 33%]
tests/unit/test_aes.py::TestTamperedCiphertext::test_wrong_key_raises_error PASSED [ 35%]
tests/unit/test_aes.py::TestMissingKey::test_missing_key_refuses_startup PASSED [ 38%]
tests/unit/test_aes.py::TestMissingKey::test_too_short_key_refuses_startup PASSED [ 41%]
tests/unit/test_aes.py::TestMissingKey::test_get_aes_key_returns_bytes PASSED [ 43%]
tests/unit/test_aes.py::TestNoPlaintextFallback::test_decrypt_returns_decrypted_value PASSED [ 46%]
tests/contract/test_health.py::TestHealthEndpoint::test_returns_200 PASSED [ 48%]
tests/contract/test_health.py::TestHealthEndpoint::test_returns_ok_status PASSED [ 51%]
tests/contract/test_health.py::TestHealthEndpoint::test_woo_reachable_false_when_credentials_not_configured PASSED [ 53%]
tests/contract/test_health.py::TestHealthEndpoint::test_response_shape PASSED [ 56%]
tests/contract/test_health.py::TestHealthEndpoint::test_with_test_client_lifespan PASSED [ 58%]
tests/contract/test_slabs.py::TestCreateSlab::test_returns_201 PASSED    [ 61%]
tests/contract/test_slabs.py::TestCreateSlab::test_returns_status_calibrated PASSED [ 64%]
tests/contract/test_slabs.py::TestCreateSlab::test_returns_server_rev PASSED [ 66%]
tests/contract/test_slabs.py::TestCreateSlab::test_response_shape PASSED [ 69%]
tests/contract/test_slabs.py::TestCreateSlab::test_multiple_photos PASSED [ 71%]
tests/contract/test_slabs.py::TestCreateSlab::test_missing_data_field_returns_400 PASSED [ 74%]
tests/contract/test_slabs.py::TestCreateSlab::test_duplicate_sku_returns_409 PASSED [ 76%]
tests/contract/test_slabs.py::TestCreateSlab::test_with_test_client_lifespan PASSED [ 79%]
tests/contract/test_woo_base_url.py::TestWooBaseUrlValidation::test_refuses_http_url PASSED [ 82%]
tests/contract/test_woo_base_url.py::TestWooBaseUrlValidation::test_refuses_missing_url PASSED [ 84%]
tests/contract/test_woo_base_url.py::TestWooBaseUrlValidation::test_accepts_https_url PASSED [ 87%]
tests/contract/test_woo_base_url.py::TestWooBaseUrlReadOnly::test_get_settings_returns_woo_base_url PASSED [ 89%]
tests/contract/test_woo_base_url.py::TestWooBaseUrlReadOnly::test_put_settings_rejects_woo_base_url PASSED [ 92%]
tests/contract/test_woo_base_url.py::TestWooBaseUrlReadOnly::test_put_settings_allows_other_fields PASSED [ 94%]
tests/contract/test_woo_base_url.py::TestWooBaseUrlReadOnly::test_get_settings_never_returns_app_password PASSED [ 97%]
tests/contract/test_woo_base_url.py::TestWooBaseUrlReadOnly::test_put_settings_rejects_consumer_keys 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
======================== 39 passed, 2 warnings in 0.45s ========================
EXIT:0
