| 145 | @pytest.mark.unit |
| 146 | def test_openai_stream_field_helper_accepts_dict_and_objects() -> None: |
| 147 | class Obj: |
| 148 | content = "object-content" |
| 149 | |
| 150 | assert _field({"content": "dict-content"}, "content") == "dict-content" |
| 151 | assert _field(Obj(), "content") == "object-content" |
no outgoing calls