Skip to content

Test failures with inline-snapshot>=0.25.0 #2514

@mweinelt

Description

@mweinelt

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

For integrating this package into nixpkgs we run the test suite.

When upgrading inline-snapshot to version 0.25.0 or beyond we see the following test failures:

Full test log

openai> FAILED tests/lib/chat/test_completions_streaming.py::test_content_logprobs_events - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_refusal_logprobs_events - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_parse_pydantic_tool - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_parse_multiple_pydantic_tools - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_parse_strict_tools - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_non_pydantic_response_format - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_allows_non_strict_tools_but_no_parsing - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_chat_completion_state_helper - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_parse_nothing - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_parse_pydantic_model - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_parse_pydantic_model_multiple_choices - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_parse_max_tokens_reached - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_parse_pydantic_model_refusal - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_content_logprobs_events - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_refusal_logprobs_events - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_parse_pydantic_tool - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_parse_multiple_pydantic_tools - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_parse_strict_tools - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_non_pydantic_response_format - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_allows_non_strict_tools_but_no_parsing - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_chat_completion_state_helper - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_parse_nothing - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_parse_pydantic_model - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_parse_pydantic_model_multiple_choices - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_parse_max_tokens_reached - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_parse_pydantic_model_refusal - AssertionError: RESPX: some routes were not called!

To Reproduce

  1. Update inline-snapshot
  2. Run the test suite

Code snippets

OS

Linux

Python version

3.13.5

Library version

1.99.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions