Skip to content

Commit a104920

Browse files
authored
Simplify test
1 parent 0ed7c7c commit a104920

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/test_update.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from sqlmodel import Field, SQLModel, create_engine
1+
from sqlmodel import Field, SQLModel
22

33

44
def test_sqlmodel_update():
@@ -10,9 +10,6 @@ class Organization(SQLModel, table=True):
1010
class OrganizationUpdate(SQLModel):
1111
name: str
1212

13-
engine = create_engine("sqlite:///", echo=True)
14-
SQLModel.metadata.create_all(engine)
15-
1613
org = Organization(name="Example Org", city="New York", headquarters="NYC HQ")
1714
org_in = OrganizationUpdate(name="Updated org")
1815
org.sqlmodel_update(

0 commit comments

Comments
 (0)