mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Used more specific test assertions.
This commit is contained in:
parent
11e7254c3d
commit
2791fbf59d
11 changed files with 19 additions and 20 deletions
|
@ -298,7 +298,7 @@ class BooleanFieldTests(unittest.TestCase):
|
|||
# conversions are applied with an offset
|
||||
b5 = BooleanModel.objects.all().extra(
|
||||
select={'string_col': 'string'})[0]
|
||||
self.assertFalse(isinstance(b5.pk, bool))
|
||||
self.assertNotIsInstance(b5.pk, bool)
|
||||
|
||||
def test_select_related(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue