MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_customfinder_pass

Method test_customfinder_pass

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

Source from the content-addressed store, hash-verified

614
615 @modifies_instrumentation_finders
616 def test_customfinder_pass(self):
617 class A:
618 pass
619
620 def find(cls):
621 return None
622
623 instrumentation.instrumentation_finders.insert(0, find)
624 register_class(A)
625
626 eq_(type(manager_of_class(A)), instrumentation.ClassManager)
627
628
629class 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