MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_customfinder_pass

Method test_customfinder_pass

test/ext/test_extendedattr.py:617–627  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

615
616 @modifies_instrumentation_finders
617 def test_customfinder_pass(self):
618 class A:
619 pass
620
621 def find(cls):
622 return None
623
624 instrumentation.instrumentation_finders.insert(0, find)
625 register_class(A)
626
627 eq_(type(manager_of_class(A)), instrumentation.ClassManager)
628
629
630class InstrumentationCollisionTest(_ExtBase, fixtures.ORMTest):

Callers

nothing calls this directly

Calls 4

register_classFunction · 0.90
eq_Function · 0.90
manager_of_classFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected