failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · fastapi/fastapi
(not found in data/tasks.jsonl)
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
............F
=================================== FAILURES ===================================
_______________ test_encode_model_with_default_in_dict_and_list ________________
def test_encode_model_with_default_in_dict_and_list():
model = ModelWithDefault(foo="foo", bar="bar")
assert jsonable_encoder([model], exclude_defaults=True) == [{"foo": "foo"}]
> assert jsonable_encoder({"key": model}, exclude_defaults=True) == {
"key": {"foo": "foo"}
}
E AssertionError: assert {'key': {'foo...'bla': 'bla'}} == {'key': {'foo': 'foo'}}
E
E Differing items:
E {'key': {'foo': 'foo', 'bar': 'bar', 'bla': 'bla'}} != {'key': {'foo': 'foo'}}
E Use -v to get more diff
tests/test_jsonable_encoder.py:208: AssertionError
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 12 passed in 0.47s