============================= test session starts ==============================
platform darwin -- Python 3.12.12, pytest-9.0.2, pluggy-1.6.0 -- /Users/dondoe/coding/zeroth/.venv/bin/python3
cachedir: .pytest_cache
rootdir: /Users/dondoe/coding/zeroth
configfile: pyproject.toml
plugins: anyio-4.12.1, langsmith-0.7.20, asyncio-1.3.0
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collecting ... collected 3 items

tests/service/test_auth_api.py::test_service_health_requires_authentication FAILED [ 33%]
tests/service/test_auth_api.py::test_service_health_accepts_api_key_authentication FAILED [ 66%]
tests/service/test_auth_api.py::test_approval_resolution_uses_authenticated_principal FAILED [100%]

=================================== FAILURES ===================================
_________________ test_service_health_requires_authentication __________________

sqlite_db = <zeroth.storage.sqlite.SQLiteDatabase object at 0x10b0fcc20>

    def test_service_health_requires_authentication(sqlite_db) -> None:
>       service, _ = deploy_service(sqlite_db, approval_resume_graph(graph_id="graph-auth-health"))
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/service/test_auth_api.py:16: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/service/helpers.py:180: in deploy_service
    auth_config=auth_config or default_service_auth_config(),
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    def default_service_auth_config():
>       from zeroth.service.auth import ServiceAuthConfig, StaticApiKeyCredential
E       ModuleNotFoundError: No module named 'zeroth.service.auth'

tests/service/helpers.py:46: ModuleNotFoundError
______________ test_service_health_accepts_api_key_authentication ______________

sqlite_db = <zeroth.storage.sqlite.SQLiteDatabase object at 0x10b0ff590>

    def test_service_health_accepts_api_key_authentication(sqlite_db) -> None:
>       service, _ = deploy_service(sqlite_db, approval_resume_graph(graph_id="graph-auth-health-key"))
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/service/test_auth_api.py:32: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/service/helpers.py:180: in deploy_service
    auth_config=auth_config or default_service_auth_config(),
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    def default_service_auth_config():
>       from zeroth.service.auth import ServiceAuthConfig, StaticApiKeyCredential
E       ModuleNotFoundError: No module named 'zeroth.service.auth'

tests/service/helpers.py:46: ModuleNotFoundError
____________ test_approval_resolution_uses_authenticated_principal _____________

sqlite_db = <zeroth.storage.sqlite.SQLiteDatabase object at 0x10b192ab0>

    def test_approval_resolution_uses_authenticated_principal(sqlite_db) -> None:
>       service, _ = deploy_service(
            sqlite_db,
            approval_resume_graph(graph_id="graph-auth-approval"),
        )

tests/service/test_auth_api.py:48: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/service/helpers.py:180: in deploy_service
    auth_config=auth_config or default_service_auth_config(),
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    def default_service_auth_config():
>       from zeroth.service.auth import ServiceAuthConfig, StaticApiKeyCredential
E       ModuleNotFoundError: No module named 'zeroth.service.auth'

tests/service/helpers.py:46: ModuleNotFoundError
=========================== short test summary info ============================
FAILED tests/service/test_auth_api.py::test_service_health_requires_authentication
FAILED tests/service/test_auth_api.py::test_service_health_accepts_api_key_authentication
FAILED tests/service/test_auth_api.py::test_approval_resolution_uses_authenticated_principal
============================== 3 failed in 0.22s ===============================
