MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _assert_path_result

Method _assert_path_result

test/orm/test_options.py:98–109  ·  view source on GitHub ↗
(self, opt, q, paths)

Source from the content-addressed store, hash-verified

96 return orm_util.PathRegistry.coerce(self._make_path(path))
97
98 def _assert_path_result(self, opt, q, paths):
99 attr = {}
100
101 compile_state = q._compile_state()
102 compile_state.attributes = attr = {}
103 opt.process_compile_state(compile_state)
104
105 assert_paths = [k[1] for k in attr]
106 eq_(
107 {p for p in assert_paths},
108 {self._make_path(p) for p in paths},
109 )
110
111
112class LoadTest(PathTest, QueryTest):

Callers

nothing calls this directly

Calls 4

_make_pathMethod · 0.95
eq_Function · 0.90
_compile_stateMethod · 0.80
process_compile_stateMethod · 0.45

Tested by

no test coverage detected