(self)
| 631 | ) |
| 632 | |
| 633 | def test_with_labels(self): |
| 634 | User = self.classes.User |
| 635 | |
| 636 | with testing.expect_deprecated_20( |
| 637 | r"The Query.with_labels\(\) and Query.apply_labels\(\) " |
| 638 | "method is considered legacy" |
| 639 | ): |
| 640 | q = fixture_session().query(User).with_labels().statement |
| 641 | |
| 642 | self.assert_compile( |
| 643 | q, |
| 644 | "SELECT users.id AS users_id, users.name AS users_name FROM users", |
| 645 | ) |
| 646 | |
| 647 | |
| 648 | class LazyLoadOptSpecificityTest(fixtures.DeclarativeMappedTest): |
nothing calls this directly
no test coverage detected