Skip to content

Commit 069ddab

Browse files
committed
Alphabetize test name.
1 parent c412f4c commit 069ddab

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

django_mongodb/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def get_columns(self):
160160
target = column.target.column
161161
else:
162162
annotations_cnt += 1
163-
target = f"annotation_{annotations_cnt}"
163+
target = f"__annotation{annotations_cnt}"
164164

165165
result.append((target, column))
166166

django_mongodb/features.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
88
supports_date_lookup_using_string = False
99
supports_foreign_keys = False
1010
supports_ignore_conflicts = False
11-
# Not implemented: https://github.com/mongodb-labs/django-mongodb/issues/8
1211
supports_json_field = True
1312
supports_json_field_contains = False
1413
has_native_json_field = True
@@ -348,10 +347,10 @@ def django_test_expected_failures(self):
348347
"update.tests.SimpleTest.test_empty_update_with_inheritance",
349348
"update.tests.SimpleTest.test_foreign_key_update_with_id",
350349
"update.tests.SimpleTest.test_nonempty_update_with_inheritance",
351-
"model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_key_transform",
352-
"model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform",
353-
"model_fields.test_jsonfield.TestQuerying.test_order_grouping_custom_decoder",
354350
"model_fields.test_jsonfield.TestQuerying.test_join_key_transform_annotation_expression",
351+
"model_fields.test_jsonfield.TestQuerying.test_order_grouping_custom_decoder",
352+
"model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform",
353+
"model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_key_transform",
355354
},
356355
"Test inspects query for SQL": {
357356
"lookup.tests.LookupTests.test_in_ignore_none",

0 commit comments

Comments
 (0)