diff --git a/.github/workflows/runtests.py b/.github/workflows/runtests.py index 5619a08b..e5c26c34 100755 --- a/.github/workflows/runtests.py +++ b/.github/workflows/runtests.py @@ -4,15 +4,36 @@ import sys test_apps = [ + "admin_changelist", + "admin_checks", + "admin_custom_urls", + "admin_docs", "admin_filters", + "admin_inlines", + "admin_ordering", + "admin_scripts", + "admin_utils", + "admin_views", + "admin_widgets", "aggregation", "aggregation_regress", "annotations", - "auth_tests.test_models.UserManagerTestCase", + "apps", + "async", + "auth_tests", "backends", "basic", "bulk_create", + "cache", + "check_framework", + "constraints", + "contenttypes_tests", + "context_processors", + "custom_columns", + "custom_lookups", + "custom_managers", "custom_pk", + "datatypes", "dates", "datetimes", "db_functions", @@ -22,13 +43,32 @@ "delete", "delete_regress", "empty", + "empty_models", "expressions", "expressions_case", + "field_defaults", + "file_storage", + "file_uploads", + "fixtures", + "fixtures_model_package", + "fixtures_regress", + "flatpages_tests", "force_insert_update", + "foreign_object", + "forms_tests", "from_db_value", + "generic_inline_admin", "generic_relations", "generic_relations_regress", + "generic_views", + "get_earliest_or_latest", + "get_object_or_404", + "get_or_create", + "i18n", + "indexes", + "inline_formsets", "introspection", + "invalid_models_tests", "known_related_objects", "lookup", "m2m_and_m2o", @@ -40,15 +80,29 @@ "m2m_through", "m2m_through_regress", "m2o_recursive", + "managers_regress", "many_to_many", "many_to_one", "many_to_one_null", + "max_lengths", + "messages_tests", + "migrate_signals", + "migration_test_data_persistence", "migrations", "model_fields", "model_fields_", "model_forms", "model_formsets", + "model_formsets_regress", + "model_indexes", + "model_inheritance", "model_inheritance_regress", + "model_options", + "model_package", + "model_regress", + "model_utils", + "modeladmin", + "multiple_database", "mutually_referential", "nested_foreign_keys", "null_fk", @@ -56,16 +110,47 @@ "null_queries", "one_to_one", "or_lookups", + "order_with_respect_to", "ordering", + "pagination", + "prefetch_related", + "proxy_model_inheritance", + "proxy_models", "queries", "queries_", + "queryset_pickle", + "redirects_tests", + "reserved_names", + "reverse_lookup", + "save_delete_hooks", "schema", + "select_for_update", "select_related", "select_related_onetoone", "select_related_regress", + "serializers", + "servers", "sessions_tests", + "shortcuts", + "signals", + "sitemaps_tests", + "sites_framework", + "sites_tests", + "string_lookup", + "swappable_models", + "syndication_tests", + "test_client", + "test_client_regress", + "test_runner", + "test_utils", "timezones", + "transactions", + "unmanaged_models", "update", + "update_only_fields", + "user_commands", + "validation", + "view_tests", "xor_lookups", ] runtests = pathlib.Path(__file__).parent.resolve() / "runtests.py" diff --git a/django_mongodb/features.py b/django_mongodb/features.py index 4c9b32d1..3be98779 100644 --- a/django_mongodb/features.py +++ b/django_mongodb/features.py @@ -82,6 +82,10 @@ class DatabaseFeatures(BaseDatabaseFeatures): # https://github.com/mongodb-labs/django-mongodb/issues/161 "queries.tests.RelatedLookupTypeTests.test_values_queryset_lookup", "queries.tests.ValuesSubqueryTests.test_values_in_subquery", + # Object of type ObjectId is not JSON serializable. + "auth_tests.test_views.LoginTest.test_login_session_without_hash_session_key", + # GenericRelation.value_to_string() assumes integer pk. + "contenttypes_tests.test_fields.GenericRelationTests.test_value_to_string", } # $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3. _django_test_expected_failures_bitwise = { @@ -106,6 +110,8 @@ def django_test_expected_failures(self): # bson.errors.InvalidDocument: cannot encode object: #