MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _scalar_obj_fixture

Method _scalar_obj_fixture

test/orm/test_attributes.py:49–59  ·  test/orm/test_attributes.py::AttributeImplAPITest._scalar_obj_fixture
(self)

Source from the content-addressed store, hash-verified

47
48class AttributeImplAPITest(fixtures.MappedTest):
49 def _scalar_obj_fixture(self):
50 class A:
51 pass
52
53 class B:
54 pass
55
56 instrumentation.register_class(A)
57 instrumentation.register_class(B)
58 _register_attribute(A, class="st">"b", uselist=False, useobject=True)
59 return A, B
60
61 def _collection_obj_fixture(self):
62 class A:

Calls 1

_register_attributeFunction · 0.70

Tested by

no test coverage detected