(self)
| 259 | available_apps = [] |
| 260 | |
| 261 | def setUp(self): |
| 262 | compiler = Person.objects.all().query.get_compiler(connection.alias) |
| 263 | self.editor = connection.schema_editor() |
| 264 | self.expressions = Expressions( |
| 265 | table=Person._meta.db_table, |
| 266 | expressions=ExpressionList( |
| 267 | IndexExpression(F("first_name")), |
| 268 | IndexExpression(F("last_name").desc()), |
| 269 | IndexExpression(Upper("last_name")), |
| 270 | ).resolve_expression(compiler.query), |
| 271 | compiler=compiler, |
| 272 | quote_value=self.editor.quote_value, |
| 273 | ) |
| 274 | |
| 275 | def test_references_table(self): |
| 276 | self.assertIs(self.expressions.references_table(Person._meta.db_table), True) |
nothing calls this directly
no test coverage detected