(self)
| 1591 | Book.objects.alias(**{crafted_alias: FilteredRelation("authors")}) |
| 1592 | |
| 1593 | def test_values_wrong_alias(self): |
| 1594 | expected_message = ( |
| 1595 | "Cannot resolve keyword 'alias_typo' into field. Choices are: %s" |
| 1596 | ) |
| 1597 | alias_fields = ", ".join( |
| 1598 | sorted(["my_alias"] + list(get_field_names_from_opts(Book._meta))) |
| 1599 | ) |
| 1600 | with self.assertRaisesMessage(FieldError, expected_message % alias_fields): |
| 1601 | Book.objects.alias(my_alias=F("pk")).order_by("alias_typo") |
nothing calls this directly
no test coverage detected