File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 23
23
from unittest .mock import patch , MagicMock
24
24
25
25
import sqlalchemy as sa
26
- from sqlalchemy import select , insert
27
26
from sqlalchemy .orm import Session
28
27
29
28
from sqlalchemy_cratedb import SA_VERSION , SA_1_4
@@ -78,8 +77,8 @@ def test_insert_from_select_triggered(self):
78
77
self .session .add (char )
79
78
self .session .commit ()
80
79
81
- sel = select (self .character .name , self .character .age ).where (self .character .status == "Archived" )
82
- ins = insert (self .character_archived ).from_select (['name' , 'age' ], sel )
80
+ sel = sa . select (self .character .name , self .character .age ).where (self .character .status == "Archived" )
81
+ ins = sa . insert (self .character_archived ).from_select (['name' , 'age' ], sel )
83
82
self .session .execute (ins )
84
83
self .session .commit ()
85
84
self .assertSQL (
You can’t perform that action at this time.
0 commit comments