MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / teardown_test

Method teardown_test

test/orm/test_unitofworkv2.py:870–876  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

868
869class SingleCycleTest(UOWTest):
870 def teardown_test(self):
871 engines.testing_reaper.rollback_all()
872 # mysql can't handle delete from nodes
873 # since it doesn't deal with the FKs correctly,
874 # so wipe out the parent_id first
875 with testing.db.begin() as conn:
876 conn.execute(self.tables.nodes.update().values(parent_id=None))
877
878 def test_one_to_many_save(self):
879 Node, nodes = self.classes.Node, self.tables.nodes

Callers

nothing calls this directly

Calls 5

rollback_allMethod · 0.80
beginMethod · 0.45
executeMethod · 0.45
valuesMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected