MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / teardown_test

Method teardown_test

test/orm/declarative/test_mixin.py:64–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 registry = mapper_registry
63
64 def teardown_test(self):
65 close_all_sessions()
66 clear_mappers()
67 with testing.db.begin() as conn:
68 Base.metadata.drop_all(conn)
69
70
71class DeclarativeMixinTest(DeclarativeTestBase):

Callers

nothing calls this directly

Calls 4

close_all_sessionsFunction · 0.90
clear_mappersFunction · 0.90
drop_allMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected