============================= test session starts ==============================
platform linux -- Python 3.12.2, pytest-8.3.2, pluggy-1.5.0
rootdir: /workspace/lean-ctx/clients/python
collecting ... collected 3 items

tests/test_client.py::test_context_request_round_trip PASSED               [ 33%]
tests/test_client.py::test_invalid_observation FAILED                      [ 66%]
tests/test_client.py::test_streaming_disconnect PASSED                    [100%]

=================================== FAILURES ===================================
__________________________ test_invalid_observation ___________________________

    def test_invalid_observation():
        response = client.observe({"output_tokens": -1})
>       assert response.error == "output_tokens must be non-negative"
E       AssertionError: assert 'invalid observation' == 'output_tokens must be non-negative'
E         - output_tokens must be non-negative
E         + invalid observation

clients/python/tests/test_client.py:118: AssertionError
=========================== short test summary info ============================
FAILED tests/test_client.py::test_invalid_observation - AssertionError
========================= 1 failed, 2 passed in 0.31s ==========================
