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
I used the GitHub search to find a similar question and didn't find it.
I searched the SQLModel documentation, with the integrated search.
I already searched in Google "How to X in SQLModel" and didn't find any information.
I already read and followed all the tutorial in the docs and didn't find an answer.
I already checked if it is not related to SQLModel but to Pydantic.
I already checked if it is not related to SQLModel but to SQLAlchemy.
Commit to Help
I commit to help with one of those options 👆
Example Code
Mycodeisinthisrepo: https://github.com/gamesbook/fasttest/Itcanbecheckedoutandused. Itsessentiallya"copy and paste"ofthecodefromtheexamplesinthetutorialsbutnotworking"as is".
I'd appreciate knowing what I have missed, as I'dliketogettestsworkinginasimilarwayformyownproject.
Description
The pytest run generates these errors:
======================================================= short test summary info ========================================================
FAILED src/tests/test_api.py::test_create_hero - sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: hero
FAILED src/tests/test_api.py::test_read_heroes - sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: hero
FAILED src/tests/test_api.py::test_read_hero - sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: hero
===================================================== 3 failed, 2 passed in 1.51s =====================================================
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First Check
Commit to Help
Example Code
Description
The pytest run generates these errors:
Operating System
Linux
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
Python 3.11.4
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions