Module ImportFrom alias ImportFrom alias alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword Str keyword NameLoad Assign AttributeStore NameLoad attr NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword Str keyword Num Call AttributeLoad NameLoad attr keyword Str keyword Num Call AttributeLoad NameLoad attr keyword Str keyword Num Assign AttributeStore NameLoad attr TupleLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Dict Str Num Dict Str Num Dict Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign TupleStore TupleStore NameStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore TupleLoad TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call NameLoad Str NameLoad decorator_list
N/A unittest TestCase mock patch MagicMock N/A sqlalchemy sa sqlalchemy.orm Session sqlalchemy.ext.declarative declarative_base crate.client.cursor Cursor N/A fake_cursor N/A MagicMock name fake_cursor N/A FakeCursor N/A MagicMock name FakeCursor spec Cursor N/A N/A FakeCursor return_value fake_cursor SqlAlchemyBulkTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self engine N/A N/A sa create_engine crate:// N/A Base N/A declarative_base bind N/A self engine Character N/A Base N/A N/A __tablename__ characters N/A name N/A N/A sa Column N/A sa String primary_key True N/A age N/A N/A sa Column N/A sa Integer N/A N/A N/A self character Character N/A N/A self session N/A Session N/A test_bulk_save N/A N/A self N/A N/A N/A chars N/A N/A N/A self character name Arthur age 35 N/A N/A self character name Banshee age 26 N/A N/A self character name Callisto age 37 N/A N/A fake_cursor description N/A N/A N/A fake_cursor rowcount N/A len chars N/A N/A N/A fake_cursor executemany return_value N/A N/A rowcount 1 N/A rowcount 1 N/A rowcount 1 N/A N/A N/A N/A self session bulk_save_objects chars N/A N/A N/A stmt bulk_args _kwargs N/A N/A fake_cursor executemany call_args N/A expected_stmt INSERT INTO characters (name, age) VALUES (?, ?) N/A N/A N/A self assertEqual expected_stmt stmt N/A expected_bulk_args N/A N/A Arthur 35 N/A Banshee 26 N/A Callisto 37 N/A N/A N/A self assertEqual expected_bulk_args bulk_args N/A N/A patch crate.client.connection.Cursor FakeCursor N/A