Skip to content

Commit 0b511f4

Browse files
committed
add model_forms tests to CI
1 parent 9dd5f08 commit 0b511f4

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/test-python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ jobs:
9797
m2m_through_regress
9898
m2o_recursive
9999
model_fields
100+
model_forms
100101
one_to_one
101102
ordering
102103
or_lookups

django_mongodb/features.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@ class DatabaseFeatures(BaseDatabaseFeatures):
6969
"aggregation_regress.tests.AggregationTests.test_more_more_more3",
7070
# Incorrect JOIN with GenericRelation gives incorrect results.
7171
"aggregation_regress.tests.AggregationTests.test_aggregation_with_generic_reverse_relation",
72+
# MongoAutoField.get_prep_value() must accept strings.
73+
"model_forms.test_modelchoicefield.ModelChoiceFieldTests.test_choices",
74+
"model_forms.test_modelchoicefield.ModelChoiceFieldTests.test_clean_model_instance",
75+
"model_forms.tests.ModelFormBasicTests.test_int_pks",
76+
"model_forms.tests.ModelFormBasicTests.test_m2m_editing",
77+
"model_forms.tests.ModelMultipleChoiceFieldTests.test_clean_does_deduplicate_values",
78+
"model_forms.tests.ModelMultipleChoiceFieldTests.test_model_multiple_choice_field",
79+
"model_forms.tests.ModelOneToOneFieldTests.test_onetoonefield",
80+
"model_forms.tests.ModelFormBasicTests.test_initial_values",
81+
"model_forms.tests.ModelMultipleChoiceFieldTests.test_model_multiple_choice_show_hidden_initial",
82+
# AutoField (IntegerField) validators crash MongoAutoField.
83+
"model_forms.tests.ModelFormBasicTests.test_recleaning_model_form_instance",
7284
}
7385
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
7486
_django_test_expected_failures_bitwise = {
@@ -113,6 +125,7 @@ def django_test_expected_failures(self):
113125
"QuerySet.prefetch_related() is not supported on MongoDB.": {
114126
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_proxied",
115127
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_reverse_proxied",
128+
"model_forms.tests.OtherModelFormTests.test_prefetch_related_queryset",
116129
},
117130
"QuerySet.update() with expression not supported.": {
118131
"annotations.tests.AliasTests.test_update_with_alias",
@@ -235,6 +248,11 @@ def django_test_expected_failures(self):
235248
"lookup.tests.LookupTests.test_exact_exists",
236249
"lookup.tests.LookupTests.test_nested_outerref_lhs",
237250
"lookup.tests.LookupQueryingTests.test_filter_exists_lhs",
251+
"model_forms.tests.LimitChoicesToTests.test_fields_for_model_applies_limit_choices_to",
252+
"model_forms.tests.LimitChoicesToTests.test_limit_choices_to_callable_for_fk_rel",
253+
"model_forms.tests.LimitChoicesToTests.test_limit_choices_to_callable_for_m2m_rel",
254+
"model_forms.tests.LimitChoicesToTests.test_limit_choices_to_m2m_through",
255+
"model_forms.tests.LimitChoicesToTests.test_limit_choices_to_no_duplicates",
238256
"queries.tests.ExcludeTest17600.test_exclude_plain",
239257
"queries.tests.ExcludeTest17600.test_exclude_with_q_is_equal_to_plain_exclude_variation",
240258
"queries.tests.ExcludeTest17600.test_exclude_with_q_object_no_distinct",

0 commit comments

Comments
 (0)