MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_docstring

Method test_docstring

test/ext/test_hybrid.py:704–712  ·  view source on GitHub ↗
(self, use_inplace, use_classmethod)

Source from the content-addressed store, hash-verified

702 @testing.variation("use_inplace", [True, False])
703 @testing.variation("use_classmethod", [True, False])
704 def test_docstring(self, use_inplace, use_classmethod):
705 A = self._fixture(
706 use_inplace=use_inplace, use_classmethod=use_classmethod
707 )
708 eq_(A.value.__doc__, "This is a class-level docstring")
709
710 # no docstring here since we get a literal
711 a1 = A(_value=10)
712 eq_(a1.value, 5)
713
714 @testing.variation("use_inplace", [True, False])
715 @testing.variation("use_classmethod", [True, False])

Callers

nothing calls this directly

Calls 3

_fixtureMethod · 0.95
eq_Function · 0.90
AClass · 0.70

Tested by

no test coverage detected