(cls)
| 52 | |
| 53 | @classmethod |
| 54 | def setup_mappers(cls): |
| 55 | cls._setup_stock_mapping() |
| 56 | |
| 57 | class SubItem(cls.classes.Item): |
| 58 | pass |
| 59 | |
| 60 | cls.mapper_registry.map_imperatively( |
| 61 | SubItem, |
| 62 | None, |
| 63 | inherits=cls.classes.Item, |
| 64 | properties={ |
| 65 | "extra_keywords": relationship( |
| 66 | cls.classes.Keyword, |
| 67 | viewonly=True, |
| 68 | secondary=cls.tables.item_keywords, |
| 69 | ) |
| 70 | }, |
| 71 | ) |
| 72 | |
| 73 | class OrderWProp(cls.classes.Order): |
| 74 | @property |
| 75 | def some_attr(self): |
| 76 | return "hi" |
| 77 | |
| 78 | cls.mapper_registry.map_imperatively( |
| 79 | OrderWProp, None, inherits=cls.classes.Order |
| 80 | ) |
| 81 | |
| 82 | |
| 83 | class PathTest: |
nothing calls this directly
no test coverage detected