1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Refs #23919 -- Removed str_prefix usage

This commit is contained in:
Claude Paroz
2017-01-20 15:24:05 +01:00
parent 7aba69145d
commit 289fc1bfa5
6 changed files with 37 additions and 47 deletions

View File

@@ -1,6 +1,5 @@
from django.db.models import Max
from django.test import TestCase, skipUnlessDBFeature
from django.test.utils import str_prefix
from .models import Celebrity, Fan, Staff, StaffTag, Tag
@@ -78,8 +77,7 @@ class DistinctOnTests(TestCase):
(
(Staff.objects.distinct('id').order_by('id', 'coworkers__name').
values_list('id', 'coworkers__name')),
[str_prefix("(1, %(_)s'p2')"), str_prefix("(2, %(_)s'p1')"),
str_prefix("(3, %(_)s'p1')"), "(4, None)"]
["(1, 'p2')", "(2, 'p1')", "(3, 'p1')", "(4, None)"]
),
)
for qset, expected in qsets: