MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _fixture

Method _fixture

test/sql/test_defaults.py:1573–1580  ·  view source on GitHub ↗
(self, fn)

Source from the content-addressed store, hash-verified

1571 )
1572
1573 def _fixture(self, fn):
1574 def gen_default(context):
1575 fn(context)
1576
1577 some_table = self.tables.some_table
1578 some_table.c.x.default.arg = gen_default
1579 some_table.c.x._reset_memoizations()
1580 return fn
1581
1582 @testing.combinations(
1583 ("single", "attribute"),

Callers

nothing calls this directly

Calls 1

_reset_memoizationsMethod · 0.80

Tested by

no test coverage detected