1
0
mirror of https://github.com/django/django.git synced 2025-01-03 06:55:47 +00:00

Refs #22288 -- Corrected __range lookup test names.

This commit is contained in:
Simon Charette 2024-01-13 15:54:56 -05:00 committed by Mariusz Felisiak
parent 5a46f3fad7
commit 561f770415

View File

@ -1151,7 +1151,7 @@ class IterableLookupInnerExpressionsTests(TestCase):
[self.c5040, self.c5050, self.c5060],
)
def test_expressions_in_lookups_join_choice(self):
def test_expressions_range_lookups_join_choice(self):
midpoint = datetime.time(13, 0)
t1 = Time.objects.create(time=datetime.time(12, 0))
t2 = Time.objects.create(time=datetime.time(14, 0))
@ -1225,7 +1225,7 @@ class IterableLookupInnerExpressionsTests(TestCase):
queryset = Company.objects.filter(name__in=[F("num_chairs") + "1)) OR ((1==1"])
self.assertQuerySetEqual(queryset, [], ordered=False)
def test_in_lookup_allows_F_expressions_and_expressions_for_datetimes(self):
def test_range_lookup_allows_F_expressions_and_expressions_for_datetimes(self):
start = datetime.datetime(2016, 2, 3, 15, 0, 0)
end = datetime.datetime(2016, 2, 5, 15, 0, 0)
experiment_1 = Experiment.objects.create(