1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Removed obsolete assertions in BooleanFieldTests.test_return_type().

Added in e9bbdb39de.
Obsolete since e9103402c0.
This commit is contained in:
Mariusz Felisiak 2022-06-03 21:28:46 +02:00 committed by GitHub
parent 00639dbd6d
commit aaf00450d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View File

@ -141,7 +141,6 @@ class NullBooleanModel(models.Model):
class BooleanModel(models.Model):
bfield = models.BooleanField()
string = models.CharField(max_length=10, default="abc")
class DateTimeModel(models.Model):

View File

@ -71,11 +71,6 @@ class BooleanFieldTests(TestCase):
b4.refresh_from_db()
self.assertIs(b4.nbfield, False)
# When an extra clause exists, the boolean conversions are applied with
# an offset (#13293).
b5 = BooleanModel.objects.extra(select={"string_col": "string"})[0]
self.assertNotIsInstance(b5.pk, bool)
def test_select_related(self):
"""
Boolean fields retrieved via select_related() should return booleans.