(self)
| 78 | ) |
| 79 | |
| 80 | def test_textfield(self): |
| 81 | Article.objects.create( |
| 82 | title="The Title", |
| 83 | text="x" * 4000, |
| 84 | written=timezone.now(), |
| 85 | ) |
| 86 | obj = Article.objects.annotate(json_array=JSONArray(F("text"))).first() |
| 87 | self.assertEqual(obj.json_array, ["x" * 4000]) |
| 88 | |
| 89 | @unittest.skipUnless(connection.vendor == "postgresql", "PostgreSQL specific tests") |
| 90 | def test_explicit_cast(self): |