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

Method test_single_opt_only

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

Source from the content-addressed store, hash-verified

1353 eq_(attr[key].local_opts, expected)
1354
1355 def test_single_opt_only(self):
1356 User = self.classes.User
1357
1358 opt = strategy_options.Load(User).some_col_opt_only(
1359 User.name, {"foo": "bar"}
1360 )
1361 self._assert_attrs([opt], {"foo": "bar"})
1362
1363 def test_bound_multiple_opt_only(self):
1364 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