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 2323from unittest .mock import patch , MagicMock
2424
2525import sqlalchemy as sa
26- from sqlalchemy import select , insert
2726from sqlalchemy .orm import Session
2827
2928from sqlalchemy_cratedb import SA_VERSION , SA_1_4
@@ -78,8 +77,8 @@ def test_insert_from_select_triggered(self):
7877 self .session .add (char )
7978 self .session .commit ()
8079
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 )
8382 self .session .execute (ins )
8483 self .session .commit ()
8584 self .assertSQL (
You can’t perform that action at this time.
0 commit comments