(self)
| 551 | ) |
| 552 | |
| 553 | def test_with_labels(self): |
| 554 | User = self.classes.User |
| 555 | |
| 556 | with testing.expect_deprecated_20( |
| 557 | r"The Query.with_labels\(\) and Query.apply_labels\(\) " |
| 558 | "method is considered legacy" |
| 559 | ): |
| 560 | q = fixture_session().query(User).with_labels().statement |
| 561 | |
| 562 | self.assert_compile( |
| 563 | q, |
| 564 | "SELECT users.id AS users_id, users.name AS users_name FROM users", |
| 565 | ) |
| 566 | |
| 567 | |
| 568 | class LazyLoadOptSpecificityTest(fixtures.DeclarativeMappedTest): |
nothing calls this directly
no test coverage detected