MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_prepare_w_only

Method test_prepare_w_only

test/ext/test_automap.py:80–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

78 assert hasattr(Base.classes, "addresses")
79
80 def test_prepare_w_only(self):
81 Base = automap_base()
82
83 Base.prepare(
84 testing.db,
85 reflection_options={"only": ["users"], "resolve_fks": False},
86 )
87 assert hasattr(Base.classes, "users")
88 assert not hasattr(Base.classes, "addresses")
89
90 def test_prepare_call_multiple_times(self):
91 """newly added in 2.0 as part of #5145"""

Callers

nothing calls this directly

Calls 2

automap_baseFunction · 0.90
prepareMethod · 0.45

Tested by

no test coverage detected