(self)
| 1389 | self.assert_(p._children is not None) |
| 1390 | |
| 1391 | def test_eager_scalar(self): |
| 1392 | Parent, Child = self.classes("Parent", "Child") |
| 1393 | |
| 1394 | self.session = fixture_session() |
| 1395 | |
| 1396 | self.mapper_registry.map_imperatively( |
| 1397 | Parent, |
| 1398 | self.tables.Parent, |
| 1399 | properties={ |
| 1400 | "_children": relationship(Child, lazy="joined", uselist=False) |
| 1401 | }, |
| 1402 | ) |
| 1403 | |
| 1404 | p = Parent("p") |
| 1405 | p.children = "value" |
| 1406 | |
| 1407 | p = self.roundtrip(p) |
| 1408 | |
| 1409 | self.assert_("_children" in p.__dict__) |
| 1410 | self.assert_(p._children is not None) |
| 1411 | |
| 1412 | |
| 1413 | class Parent: |
nothing calls this directly
no test coverage detected