(self)
| 86 | self.assertEqual(authors.first().highest_age, 50) |
| 87 | |
| 88 | def test_update(self): |
| 89 | author = Author.objects.create(name="James Smith", goes_by="Jim") |
| 90 | Author.objects.update(alias=Greatest("name", "goes_by")) |
| 91 | author.refresh_from_db() |
| 92 | self.assertEqual(author.alias, "Jim") |
| 93 | |
| 94 | def test_decimal_filter(self): |
| 95 | obj = DecimalModel.objects.create(n1=Decimal("1.1"), n2=Decimal("1.2")) |
nothing calls this directly
no test coverage detected