Session.add does not add auto-incrementing value id #217
Unanswered
vinicius507
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings,
I'm trying to setup tests in a FastAPI API that uses SQLAlchemy and I'm unable to test the creation of resources due to
pydanticValidationError.And the test:
It gives the following error:
Which leads me to believe that
session.addwith UnifiedAlchemyMagicMock does not work with auto-incrementing values such asid, in this case. What should I do?Beta Was this translation helpful? Give feedback.
All reactions