Skip to content

Commit 28f2a34

Browse files
committed
add skips for all model_fields tests
1 parent f99017c commit 28f2a34

File tree

2 files changed

+33
-8
lines changed

2 files changed

+33
-8
lines changed

.github/workflows/test-python.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,7 @@ jobs:
7171
empty
7272
from_db_value
7373
lookup.tests.LookupTests.test_escaping
74-
model_fields.test_binaryfield
75-
model_fields.test_datetimefield
76-
model_fields.test_decimalfield
77-
model_fields.test_charfield
78-
model_fields.test_floatfield
79-
model_fields.test_integerfield
80-
model_fields.test_textfield
81-
model_fields.test_uuid
74+
model_fields
8275
or_lookups
8376
8477
docs:

django_mongodb/features.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
class DatabaseFeatures(BaseDatabaseFeatures):
55
supports_foreign_keys = False
6+
# Not implemented: https://github.com/mongodb-labs/django-mongodb/issues/8
7+
supports_json_field = False
68
# Not implemented: https://github.com/mongodb-labs/django-mongodb/issues/7
79
supports_transactions = False
810
uses_savepoints = False
@@ -35,6 +37,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
3537
# Empty queryset ORed (|) with another gives empty results.
3638
"or_lookups.tests.OrLookupsTests.test_empty_in",
3739
# Joins not supported.
40+
"model_fields.test_manytomanyfield.ManyToManyFieldDBTests.test_value_from_object_instance_with_pk",
3841
"model_fields.test_uuid.TestAsPrimaryKey.test_two_level_foreign_keys",
3942
}
4043

@@ -52,4 +55,33 @@ class DatabaseFeatures(BaseDatabaseFeatures):
5255
"QuerySet.update() with expression not supported.": {
5356
"model_fields.test_integerfield.PositiveIntegerFieldTests.test_negative_values",
5457
},
58+
"AutoField not supported.": {
59+
"model_fields.test_autofield.AutoFieldTests",
60+
"model_fields.test_autofield.BigAutoFieldTests",
61+
"model_fields.test_autofield.SmallAutoFieldTests",
62+
},
63+
"QuerySet.select_related() not supported.": {
64+
"model_fields.test_booleanfield.BooleanFieldTests.test_select_related",
65+
"model_fields.test_foreignkey.ForeignKeyTests.test_empty_string_fk",
66+
},
67+
"MongoDB does not enforce UNIQUE constraints.": {
68+
"auth_tests.test_basic.BasicTestCase.test_unicode_username",
69+
"auth_tests.test_migrations.ProxyModelWithSameAppLabelTests.test_migrate_with_existing_target_permission",
70+
"constraints.tests.UniqueConstraintTests.test_database_constraint",
71+
"contenttypes_tests.test_operations.ContentTypeOperationsTests.test_content_type_rename_conflict",
72+
"contenttypes_tests.test_operations.ContentTypeOperationsTests.test_existing_content_type_rename",
73+
"custom_pk.tests.CustomPKTests.test_unique_pk",
74+
"force_insert_update.tests.ForceInsertInheritanceTests.test_force_insert_with_existing_grandparent",
75+
"get_or_create.tests.GetOrCreateTestsWithManualPKs.test_create_with_duplicate_primary_key",
76+
"get_or_create.tests.GetOrCreateTestsWithManualPKs.test_savepoint_rollback",
77+
"get_or_create.tests.GetOrCreateThroughManyToMany.test_something",
78+
"get_or_create.tests.UpdateOrCreateTests.test_manual_primary_key_test",
79+
"get_or_create.tests.UpdateOrCreateTestsWithManualPKs.test_create_with_duplicate_primary_key",
80+
"model_fields.test_filefield.FileFieldTests.test_unique_when_same_filename",
81+
"one_to_one.tests.OneToOneTests.test_multiple_o2o",
82+
"queries.test_bulk_update.BulkUpdateTests.test_database_routing_batch_atomicity",
83+
},
84+
"Test assumes integer primary key.": {
85+
"model_fields.test_foreignkey.ForeignKeyTests.test_to_python",
86+
},
5587
}

0 commit comments

Comments
 (0)