(self)
| 2721 | q = sess.query(Item).with_parent(u1) |
| 2722 | |
| 2723 | def test_m2m(self): |
| 2724 | Item, Keyword = self.classes.Item, self.classes.Keyword |
| 2725 | |
| 2726 | sess = fixture_session() |
| 2727 | i1 = sess.query(Item).filter_by(id=2).one() |
| 2728 | with assertions.expect_deprecated_20(query_wparent_dep): |
| 2729 | k = sess.query(Keyword).with_parent(i1).all() |
| 2730 | assert [ |
| 2731 | Keyword(name="red"), |
| 2732 | Keyword(name="small"), |
| 2733 | Keyword(name="square"), |
| 2734 | ] == k |
| 2735 | |
| 2736 | def test_with_transient(self): |
| 2737 | User, Order = self.classes.User, self.classes.Order |
nothing calls this directly
no test coverage detected