MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_customfinder_greedy

Method test_customfinder_greedy

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

Source from the content-addressed store, hash-verified

599
600 @modifies_instrumentation_finders
601 def test_customfinder_greedy(self):
602 class Mine(instrumentation.ClassManager):
603 pass
604
605 class A:
606 pass
607
608 def find(cls):
609 return Mine
610
611 instrumentation.instrumentation_finders.insert(0, find)
612 register_class(A)
613 eq_(type(manager_of_class(A)), Mine)
614
615 @modifies_instrumentation_finders
616 def test_customfinder_pass(self):

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