(cls)
| 216 | |
| 217 | @classmethod |
| 218 | def setup_mappers(cls): |
| 219 | item, TT = cls.tables.item, cls.classes.TT |
| 220 | |
| 221 | cls.mapper_registry.map_imperatively( |
| 222 | TT, |
| 223 | item, |
| 224 | properties={ |
| 225 | "children": relationship( |
| 226 | TT, |
| 227 | remote_side=[item.c.parent_uuid], |
| 228 | backref=backref("parent", remote_side=[item.c.uuid]), |
| 229 | ) |
| 230 | }, |
| 231 | ) |
| 232 | |
| 233 | def test_basic(self): |
| 234 | TT = self.classes.TT |
nothing calls this directly
no test coverage detected