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

Method test_all_mappers_accessor_two

test/orm/test_events.py:863–887  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

861 )
862
863 def test_all_mappers_accessor_two(self):
864 sess = Session(testing.db, future=True)
865
866 canary = self._flag_fixture(sess)
867
868 sess.execute(select(self.tables.users).filter_by(id=7))
869
870 eq_(
871 canary.mock_calls,
872 [
873 call.options(
874 bind_mapper=None,
875 all_mappers=[],
876 is_select=True,
877 is_from_statement=False,
878 is_insert=False,
879 is_update=False,
880 is_delete=False,
881 is_orm_statement=False,
882 is_relationship_load=False,
883 is_column_load=False,
884 lazy_loaded_from=None,
885 )
886 ],
887 )
888
889 def test_all_mappers_accessor_three(self):
890 User, Address = self.classes("User", "Address")

Callers

nothing calls this directly

Calls 7

_flag_fixtureMethod · 0.95
executeMethod · 0.95
SessionClass · 0.90
selectFunction · 0.90
eq_Function · 0.90
filter_byMethod · 0.45
optionsMethod · 0.45

Tested by

no test coverage detected