MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / dep_cls_fixture

Method dep_cls_fixture

test/base/test_warnings.py:44–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42class ClsWarningTest(fixtures.TestBase):
43 @testing.fixture
44 def dep_cls_fixture(self):
45 class Connectable:
46 """a docstring"""
47
48 some_member = "foo"
49
50 Connectable = _decorate_cls_with_warning(
51 Connectable,
52 None,
53 SADeprecationWarning,
54 "a message",
55 "2.0",
56 "another message",
57 )
58
59 return Connectable
60
61 def test_dep_inspectable(self, dep_cls_fixture):
62 """test #8115"""

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected