MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_configure_on_prop_3

Method test_configure_on_prop_3

test/orm/test_mapper.py:603–620  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

601 eq_(str(User.id == 3), str(users.c.id == 3))
602
603 def test_configure_on_prop_3(self):
604 users, addresses, User = (
605 self.tables.users,
606 self.tables.addresses,
607 self.classes.User,
608 )
609
610 class Foo(User):
611 pass
612
613 self.mapper(User, users)
614 self.mapper(
615 Foo,
616 addresses,
617 inherits=User,
618 properties={"address_id": addresses.c.id},
619 )
620 assert getattr(Foo().__class__, "name").impl is not None
621
622 def test_deferred_subclass_attribute_instrument(self):
623 users, addresses, User = (

Callers

nothing calls this directly

Calls 2

FooClass · 0.70
mapperMethod · 0.45

Tested by

no test coverage detected