MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_single_opt_only

Method test_single_opt_only

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

Source from the content-addressed store, hash-verified

1343 eq_(attr[key].local_opts, expected)
1344
1345 def test_single_opt_only(self):
1346 User = self.classes.User
1347
1348 opt = strategy_options.Load(User).some_col_opt_only(
1349 User.name, {"foo": "bar"}
1350 )
1351 self._assert_attrs([opt], {"foo": "bar"})
1352
1353 def test_bound_multiple_opt_only(self):
1354 User = self.classes.User

Callers

nothing calls this directly

Calls 2

_assert_attrsMethod · 0.95
some_col_opt_onlyMethod · 0.80

Tested by

no test coverage detected