Ticket #17276: 17276_tests.diff

File 17276_tests.diff, 683 bytes (added by akaariai, 3 years ago)
  • tests/regressiontests/queries/tests.py

    diff --git a/tests/regressiontests/queries/tests.py b/tests/regressiontests/queries/tests.py
    index 6a54125..399c2c9 100644
    a b class DefaultValuesInsertTest(TestCase): 
    18771877            DumbCategory.objects.create()
    18781878        except TypeError:
    18791879            self.fail("Creation of an instance of a model with only the PK field shouldn't error out after bulk insert refactoring (#17056)")
     1880
     1881
     1882class M2MAntiJoinTest(TestCase):
     1883    def test_join_removal(self):
     1884        sql = str(Annotation.objects.filter(notes__isnull=True).query)
     1885        self.assertEqual(sql.count(' LEFT '), 1)
Back to Top