Skip to content

Commit 4404656

Browse files
committed
add skips for one_to_one tests
1 parent 8fd24f6 commit 4404656

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
@@ -104,6 +104,9 @@ class DatabaseFeatures(BaseDatabaseFeatures):
104104
"annotations.tests.AliasTests.test_order_by_alias",
105105
# annotate() + values_list() + order_by() loses annotated value.
106106
"expressions_case.tests.CaseExpressionTests.test_annotate_values_not_in_order_by",
107+
# Querying the reverse side of a foreign key for None returns no
108+
# results: https://github.com/mongodb-labs/django-mongodb/issues/76
109+
"one_to_one.tests.OneToOneTests.test_filter_one_to_one_relations",
107110
}
108111
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
109112
_django_test_expected_failures_bitwise = {
@@ -353,6 +356,8 @@ def django_test_expected_failures(self):
353356
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one_offset",
354357
"lookup.tests.LookupTests.test_in_different_database",
355358
"model_fields.test_jsonfield.TestQuerying.test_usage_in_subquery",
359+
"one_to_one.tests.OneToOneTests.test_get_prefetch_queryset_warning",
360+
"one_to_one.tests.OneToOneTests.test_rel_pk_subquery",
356361
},
357362
"Count doesn't work in QuerySet.annotate()": {
358363
"annotations.tests.AliasTests.test_alias_annotate_with_aggregation",
@@ -361,6 +366,9 @@ def django_test_expected_failures(self):
361366
"annotations.tests.NonAggregateAnnotationTestCase.test_annotate_with_aggregation",
362367
"db_functions.comparison.test_cast.CastTests.test_cast_from_db_datetime_to_date_group_by",
363368
},
369+
"Cannot use QuerySet.delete() when querying across multiple collections on MongoDB.": {
370+
"one_to_one.tests.OneToOneTests.test_o2o_primary_key_delete",
371+
},
364372
"QuerySet.dates() is not supported on MongoDB.": {
365373
"annotations.tests.AliasTests.test_dates_alias",
366374
"dates.tests.DatesTests.test_dates_trunc_datetime_fields",

0 commit comments

Comments
 (0)