We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ed7c7c commit a104920Copy full SHA for a104920
tests/test_update.py
@@ -1,4 +1,4 @@
1
-from sqlmodel import Field, SQLModel, create_engine
+from sqlmodel import Field, SQLModel
2
3
4
def test_sqlmodel_update():
@@ -10,9 +10,6 @@ class Organization(SQLModel, table=True):
10
class OrganizationUpdate(SQLModel):
11
name: str
12
13
- engine = create_engine("sqlite:///", echo=True)
14
- SQLModel.metadata.create_all(engine)
15
-
16
org = Organization(name="Example Org", city="New York", headquarters="NYC HQ")
17
org_in = OrganizationUpdate(name="Updated org")
18
org.sqlmodel_update(
0 commit comments