Skip to content

Commit 67c70ab

Browse files
committed
add model_forms tests to CI
1 parent bdd2a40 commit 67c70ab

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/test-python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
m2m_through_regress
9797
m2o_recursive
9898
model_fields
99+
model_forms
99100
one_to_one
100101
ordering
101102
or_lookups

django_mongodb/features.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@ class DatabaseFeatures(BaseDatabaseFeatures):
6161
"aggregation.tests.AggregateTestCase.test_aggregation_default_passed_another_aggregate",
6262
"aggregation.tests.AggregateTestCase.test_annotation_expressions",
6363
"aggregation.tests.AggregateTestCase.test_reverse_fkey_annotate",
64+
# MongoAutoField.get_prep_value() must accept strings.
65+
"model_forms.test_modelchoicefield.ModelChoiceFieldTests.test_choices",
66+
"model_forms.test_modelchoicefield.ModelChoiceFieldTests.test_clean_model_instance",
67+
"model_forms.tests.ModelFormBasicTests.test_m2m_editing",
68+
"model_forms.tests.ModelMultipleChoiceFieldTests.test_clean_does_deduplicate_values",
69+
"model_forms.tests.ModelMultipleChoiceFieldTests.test_model_multiple_choice_field",
70+
"model_forms.tests.ModelOneToOneFieldTests.test_onetoonefield",
71+
"model_forms.tests.ModelFormBasicTests.test_initial_values",
72+
"model_forms.tests.ModelMultipleChoiceFieldTests.test_model_multiple_choice_show_hidden_initial",
73+
# AutoField (IntegerField) validators crash MongoAutoField.
74+
"model_forms.tests.ModelFormBasicTests.test_recleaning_model_form_instance",
6475
}
6576
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
6677
_django_test_expected_failures_bitwise = {
@@ -105,6 +116,7 @@ def django_test_expected_failures(self):
105116
"QuerySet.prefetch_related() is not supported on MongoDB.": {
106117
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_proxied",
107118
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_reverse_proxied",
119+
"model_forms.tests.OtherModelFormTests.test_prefetch_related_queryset",
108120
},
109121
"QuerySet.update() with expression not supported.": {
110122
"annotations.tests.AliasTests.test_update_with_alias",
@@ -226,6 +238,11 @@ def django_test_expected_failures(self):
226238
"lookup.tests.LookupTests.test_exact_exists",
227239
"lookup.tests.LookupTests.test_nested_outerref_lhs",
228240
"lookup.tests.LookupQueryingTests.test_filter_exists_lhs",
241+
"model_forms.tests.LimitChoicesToTests.test_fields_for_model_applies_limit_choices_to",
242+
"model_forms.tests.LimitChoicesToTests.test_limit_choices_to_callable_for_fk_rel",
243+
"model_forms.tests.LimitChoicesToTests.test_limit_choices_to_callable_for_m2m_rel",
244+
"model_forms.tests.LimitChoicesToTests.test_limit_choices_to_m2m_through",
245+
"model_forms.tests.LimitChoicesToTests.test_limit_choices_to_no_duplicates",
229246
"queries.tests.ExcludeTest17600.test_exclude_plain",
230247
"queries.tests.ExcludeTest17600.test_exclude_with_q_is_equal_to_plain_exclude_variation",
231248
"queries.tests.ExcludeTest17600.test_exclude_with_q_object_no_distinct",

0 commit comments

Comments
 (0)