MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / test_fallback_table_metadata

Method test_fallback_table_metadata

test/orm/test_bind.py:760–767  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

758 is_(session.get_bind(self.classes.JoinedSubClass), base_class_bind)
759
760 def test_fallback_table_metadata(self):
761 session = self._fixture({})
762 assert_raises_message(
763 sa.exc.UnboundExecutionError,
764 "Could not locate a bind configured on mapper ",
765 session.get_bind,
766 self.classes.BaseClass,
767 )
768
769 def test_bind_base_table_concrete_sub_class(self):
770 base_class_bind = Mock()

Callers

nothing calls this directly

Calls 2

_fixtureMethod · 0.95
assert_raises_messageFunction · 0.90

Tested by

no test coverage detected