Skip to content

add many-to-many/foreign key tests apps to CI #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,16 @@ jobs:
m2m_through
m2m_through_regress
m2o_recursive
many_to_many
many_to_one
many_to_one_null
model_fields
model_forms
mutually_referential
nested_foreign_keys
null_fk
null_fk_ordering
null_queries
one_to_one
ordering
or_lookups
Expand Down
23 changes: 23 additions & 0 deletions django_mongodb/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ class DatabaseFeatures(BaseDatabaseFeatures):
"aggregation_regress.tests.AggregationTests.test_annotation",
"aggregation_regress.tests.AggregationTests.test_more_more3",
"aggregation_regress.tests.AggregationTests.test_more_more_more3",
# QuerySet.extra(where=...) should raise NotSupportedError instead of:
# 'ExtraWhere' object has no attribute 'as_mql'.
"many_to_one.tests.ManyToOneTests.test_selects",
# Incorrect JOIN with GenericRelation gives incorrect results.
"aggregation_regress.tests.AggregationTests.test_aggregation_with_generic_reverse_relation",
}
Expand Down Expand Up @@ -113,6 +116,12 @@ def django_test_expected_failures(self):
"QuerySet.prefetch_related() is not supported on MongoDB.": {
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_proxied",
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_reverse_proxied",
"many_to_many.tests.ManyToManyTests.test_add_after_prefetch",
"many_to_many.tests.ManyToManyTests.test_add_then_remove_after_prefetch",
"many_to_many.tests.ManyToManyTests.test_clear_after_prefetch",
"many_to_many.tests.ManyToManyTests.test_create_after_prefetch",
"many_to_many.tests.ManyToManyTests.test_remove_after_prefetch",
"many_to_many.tests.ManyToManyTests.test_set_after_prefetch",
"model_forms.tests.OtherModelFormTests.test_prefetch_related_queryset",
},
"QuerySet.update() with expression not supported.": {
Expand Down Expand Up @@ -184,6 +193,7 @@ def django_test_expected_failures(self):
"lookup.tests.LookupTests.test_filter_by_reverse_related_field_transform",
"lookup.tests.LookupTests.test_in_ignore_none_with_unhashable_items",
"m2m_through_regress.tests.ThroughLoadDataTestCase.test_sequence_creation",
"many_to_many.tests.ManyToManyTests.test_add_remove_invalid_type",
"model_fields.test_autofield.AutoFieldTests",
"model_fields.test_autofield.BigAutoFieldTests",
"model_fields.test_autofield.SmallAutoFieldTests",
Expand Down Expand Up @@ -241,6 +251,7 @@ def django_test_expected_failures(self):
"model_forms.tests.LimitChoicesToTests.test_limit_choices_to_callable_for_m2m_rel",
"model_forms.tests.LimitChoicesToTests.test_limit_choices_to_m2m_through",
"model_forms.tests.LimitChoicesToTests.test_limit_choices_to_no_duplicates",
"null_queries.tests.NullQueriesTests.test_reverse_relations",
"queries.tests.ExcludeTest17600.test_exclude_plain",
"queries.tests.ExcludeTest17600.test_exclude_with_q_is_equal_to_plain_exclude_variation",
"queries.tests.ExcludeTest17600.test_exclude_with_q_object_no_distinct",
Expand Down Expand Up @@ -331,6 +342,14 @@ def django_test_expected_failures(self):
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one",
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one_offset",
"lookup.tests.LookupTests.test_in_different_database",
"many_to_many.tests.ManyToManyTests.test_assign",
"many_to_many.tests.ManyToManyTests.test_assign_ids",
"many_to_many.tests.ManyToManyTests.test_clear",
"many_to_many.tests.ManyToManyTests.test_remove",
"many_to_many.tests.ManyToManyTests.test_reverse_assign_with_queryset",
"many_to_many.tests.ManyToManyTests.test_set",
"many_to_many.tests.ManyToManyTests.test_set_existing_different_type",
"many_to_one.tests.ManyToOneTests.test_get_prefetch_queryset_reverse_warning",
"model_fields.test_jsonfield.TestQuerying.test_usage_in_subquery",
"one_to_one.tests.OneToOneTests.test_get_prefetch_queryset_warning",
"one_to_one.tests.OneToOneTests.test_rel_pk_subquery",
Expand Down Expand Up @@ -378,6 +397,7 @@ def django_test_expected_failures(self):
"aggregation_regress.tests.AggregationTests.test_more_more_more2",
"dates.tests.DatesTests.test_dates_trunc_datetime_fields",
"dates.tests.DatesTests.test_related_model_traverse",
"many_to_one.tests.ManyToOneTests.test_select_related",
},
"QuerySet.datetimes() is not supported on MongoDB.": {
"annotations.tests.AliasTests.test_datetimes_alias",
Expand All @@ -397,6 +417,9 @@ def django_test_expected_failures(self):
"aggregation_regress.tests.AggregationTests.test_conditional_aggregate_on_complex_condition",
"aggregation_regress.tests.AggregationTests.test_distinct_conditional_aggregate",
"lookup.tests.LookupTests.test_lookup_collision_distinct",
"many_to_many.tests.ManyToManyTests.test_reverse_selects",
"many_to_many.tests.ManyToManyTests.test_selects",
"many_to_one.tests.ManyToOneTests.test_reverse_selects",
"ordering.tests.OrderingTests.test_orders_nulls_first_on_filtered_subquery",
"queries.tests.ExcludeTest17600.test_exclude_plain_distinct",
"queries.tests.ExcludeTest17600.test_exclude_with_q_is_equal_to_plain_exclude",
Expand Down