@@ -29,7 +29,7 @@ async def test_engine_only():
29
29
Column ("email_address" , String (255 ), nullable = False ),
30
30
)
31
31
32
- engine = await gino .create_engine (MYSQL_URL , autocommit = True )
32
+ engine = await gino .create_engine (MYSQL_URL )
33
33
await GinoSchemaVisitor (metadata ).create_all (engine )
34
34
try :
35
35
ins = users .insert ().values (name = "jack" , fullname = "Jack Jones" )
@@ -62,7 +62,7 @@ async def test_core():
62
62
db .Column ("email_address" , db .String (255 ), nullable = False ),
63
63
)
64
64
65
- async with db .with_bind (MYSQL_URL , autocommit = True ):
65
+ async with db .with_bind (MYSQL_URL ):
66
66
await db .gino .create_all ()
67
67
try :
68
68
await users .insert ().values (
@@ -93,7 +93,7 @@ class Address(db.Model):
93
93
user_id = db .Column (None , db .ForeignKey ("users.id" ))
94
94
email_address = db .Column (db .String (255 ), nullable = False )
95
95
96
- async with db .with_bind (MYSQL_URL , autocommit = True ):
96
+ async with db .with_bind (MYSQL_URL ):
97
97
await db .gino .create_all ()
98
98
try :
99
99
await User .create (name = "jack" , fullname = "Jack Jones" )
0 commit comments