You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting! I wonder if this is maybe related to the fact that PyTest is rewriting the AST nodes of the code to make assert robust. Seems like it could be a bug in PyTest, but one would have to investigate this further to see it in practice. Does the same problem occurrs if you use plain old pdb instead of ipdb? If so, then I would say this is a bug/issue with pytest itself, not ipdb (and then could be reported in their repository).
Having an issue in several different scenarios. I will describe one here.
I'm running some tests with pytest, and in this case I'm using a pydantic function, the code is:
this test belongs to a test class, there is a mock definition, and expected_response is a pytest fixture that returns a dictionary.
when i run this, i come here:
but if i comment the line
assert result.model_dump() == expected_reponse
things work fine:this has happened a lot to me lately in different scenarios.
The text was updated successfully, but these errors were encountered: