(self)
| 38 | FixtureTest.define_tables(metadata) |
| 39 | |
| 40 | def test_relationship_o2m_default(self): |
| 41 | Base = automap_base(metadata=self.tables_test_metadata) |
| 42 | Base.prepare() |
| 43 | |
| 44 | User = Base.classes.users |
| 45 | Address = Base.classes.addresses |
| 46 | |
| 47 | a1 = Address(email_address="e1") |
| 48 | u1 = User(name="u1", addresses_collection=[a1]) |
| 49 | assert a1.users is u1 |
| 50 | |
| 51 | def test_relationship_explicit_override_o2m(self): |
| 52 | Base = automap_base(metadata=self.tables_test_metadata) |
nothing calls this directly
no test coverage detected