Skip to content

Commit ad7e134

Browse files
committed
add skips for one_to_one tests
1 parent 4f52df0 commit ad7e134

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/test-python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jobs:
9191
m2m_through
9292
m2o_recursive
9393
model_fields
94+
one_to_one
9495
ordering
9596
or_lookups
9697
queries.tests.Ticket12807Tests.test_ticket_12807

django_mongodb/features.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ class DatabaseFeatures(BaseDatabaseFeatures):
109109
"annotations.tests.AliasTests.test_order_by_alias",
110110
# annotate() + values_list() + order_by() loses annotated value.
111111
"expressions_case.tests.CaseExpressionTests.test_annotate_values_not_in_order_by",
112+
# Querying the reverse side of a foreign key for None returns no
113+
# results: https://github.com/mongodb-labs/django-mongodb/issues/76
114+
"one_to_one.tests.OneToOneTests.test_filter_one_to_one_relations",
112115
}
113116
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
114117
_django_test_expected_failures_bitwise = {
@@ -358,6 +361,8 @@ def django_test_expected_failures(self):
358361
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one_offset",
359362
"lookup.tests.LookupTests.test_in_different_database",
360363
"model_fields.test_jsonfield.TestQuerying.test_usage_in_subquery",
364+
"one_to_one.tests.OneToOneTests.test_get_prefetch_queryset_warning",
365+
"one_to_one.tests.OneToOneTests.test_rel_pk_subquery",
361366
},
362367
"Count doesn't work in QuerySet.annotate()": {
363368
"annotations.tests.AliasTests.test_alias_annotate_with_aggregation",
@@ -366,6 +371,9 @@ def django_test_expected_failures(self):
366371
"annotations.tests.NonAggregateAnnotationTestCase.test_annotate_with_aggregation",
367372
"db_functions.comparison.test_cast.CastTests.test_cast_from_db_datetime_to_date_group_by",
368373
},
374+
"Cannot use QuerySet.delete() when querying across multiple collections on MongoDB.": {
375+
"one_to_one.tests.OneToOneTests.test_o2o_primary_key_delete",
376+
},
369377
"QuerySet.dates() is not supported on MongoDB.": {
370378
"annotations.tests.AliasTests.test_dates_alias",
371379
"dates.tests.DatesTests.test_dates_trunc_datetime_fields",

0 commit comments

Comments
 (0)