MCPcopy
hub / github.com/django/django / test_cast_to_text_field

Method test_cast_to_text_field

tests/db_functions/comparison/test_cast.py:183–189  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

181 )
182
183 def test_cast_to_text_field(self):
184 self.assertEqual(
185 Author.objects.values_list(
186 Cast("age", models.TextField()), flat=True
187 ).get(),
188 "1",
189 )

Callers

nothing calls this directly

Calls 3

CastClass · 0.90
values_listMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected