(cls)
| 826 | |
| 827 | @classmethod |
| 828 | def setup_mappers(cls): |
| 829 | keywords, items, item_keywords, Keyword, Item = ( |
| 830 | cls.tables.keywords, |
| 831 | cls.tables.items, |
| 832 | cls.tables.item_keywords, |
| 833 | cls.classes.Keyword, |
| 834 | cls.classes.Item, |
| 835 | ) |
| 836 | |
| 837 | cls.mapper_registry.map_imperatively( |
| 838 | Item, |
| 839 | items, |
| 840 | properties={ |
| 841 | "keyword": relationship( |
| 842 | Keyword, |
| 843 | secondary=item_keywords, |
| 844 | uselist=False, |
| 845 | backref=backref("item", uselist=False), |
| 846 | ) |
| 847 | }, |
| 848 | ) |
| 849 | cls.mapper_registry.map_imperatively(Keyword, keywords) |
| 850 | |
| 851 | def test_collection_move_preloaded(self): |
| 852 | Item, Keyword = self.classes.Item, self.classes.Keyword |
nothing calls this directly
no test coverage detected