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

Method _fixture

test/ext/test_hybrid.py:894–907  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

892 __dialect__ = "default"
893
894 def _fixture(self):
895 Base = declarative_base()
896
897 class A(Base):
898 __tablename__ = "a"
899 id = Column(Integer, primary_key=True)
900 _value = Column("value", String)
901
902 @hybrid.hybrid_property
903 def value(self):
904 "This is an instance-level docstring"
905 return self._value
906
907 return A
908
909 @testing.fixture
910 def _function_fixture(self):

Callers 6

test_propertyMethod · 0.95
test_keyMethod · 0.95
test_classMethod · 0.95
test_get_historyMethod · 0.95
test_info_from_hybridMethod · 0.95

Calls 1

declarative_baseFunction · 0.90

Tested by

no test coverage detected