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

Method test_bound_multiple_opt_only

test/orm/test_options.py:1353–1360  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1351 self._assert_attrs([opt], {"foo": "bar"})
1352
1353 def test_bound_multiple_opt_only(self):
1354 User = self.classes.User
1355 opts = [
1356 Load(User)
1357 .some_col_opt_only(User.name, {"foo": "bar"})
1358 .some_col_opt_only(User.name, {"bat": "hoho"})
1359 ]
1360 self._assert_attrs(opts, {"foo": "bar", "bat": "hoho"})
1361
1362 def test_bound_strat_opt_recvs_from_optonly(self):
1363 User = self.classes.User

Callers

nothing calls this directly

Calls 3

_assert_attrsMethod · 0.95
LoadClass · 0.90
some_col_opt_onlyMethod · 0.80

Tested by

no test coverage detected