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

Method _fixture

test/orm/test_attributes.py:1740–1753  ·  view source on GitHub ↗
(self, uselist, useobject, active_history, **kw)

Source from the content-addressed store, hash-verified

1738
1739class HistoryTest(fixtures.TestBase):
1740 def _fixture(self, uselist, useobject, active_history, **kw):
1741 class Foo(BasicEntity):
1742 pass
1743
1744 instrumentation.register_class(Foo)
1745 _register_attribute(
1746 Foo,
1747 "someattr",
1748 uselist=uselist,
1749 useobject=useobject,
1750 active_history=active_history,
1751 **kw,
1752 )
1753 return Foo
1754
1755 def _two_obj_fixture(self, uselist, active_history=False):
1756 class Foo(BasicEntity):

Calls 1

_register_attributeFunction · 0.70

Tested by

no test coverage detected