Ticket #25177: 25177-test.diff

File 25177-test.diff, 611 bytes (added by Baptiste Mispelon, 5 years ago)

Updated test patch to latest master

  • tests/expressions/tests.py

    diff --git a/tests/expressions/tests.py b/tests/expressions/tests.py
    index ee8b246966..782b6a6c82 100644
    a b class FTimeDeltaTests(TestCase):  
    12731273
    12741274        cls.expnames = [e.name for e in Experiment.objects.all()]
    12751275
     1276    def test_datetime_arithmetic_with_filter(self):
     1277        list(Experiment.objects.annotate(days=F('start')-F('end')).filter(days__lte=11))
     1278
    12761279    def test_multiple_query_compilation(self):
    12771280        # Ticket #21643
    12781281        queryset = Experiment.objects.filter(end__lt=F('start') + datetime.timedelta(hours=1))
Back to Top