File tree Expand file tree Collapse file tree 4 files changed +5
-156
lines changed Expand file tree Collapse file tree 4 files changed +5
-156
lines changed Original file line number Diff line number Diff line change 1515else :
1616 DATABASES = {
1717 "default" : {
18- "ENGINE" : "django_mongodb_backend " ,
18+ "ENGINE" : "django_mongodb_backend_gis " ,
1919 "NAME" : "djangotests" ,
2020 # Required when connecting to the Atlas image in Docker.
2121 "OPTIONS" : {"directConnection" : True },
2222 },
2323 "other" : {
24- "ENGINE" : "django_mongodb_backend " ,
24+ "ENGINE" : "django_mongodb_backend_gis " ,
2525 "NAME" : "djangotests-other" ,
2626 "OPTIONS" : {"directConnection" : True },
2727 },
Original file line number Diff line number Diff line change 44import sys
55
66test_apps = [
7- "admin_changelist" ,
8- "admin_checks" ,
9- "admin_custom_urls" ,
10- "admin_docs" ,
11- "admin_filters" ,
12- "admin_inlines" ,
13- "admin_ordering" ,
14- "admin_scripts" ,
15- "admin_utils" ,
16- "admin_views" ,
17- "admin_widgets" ,
18- "aggregation" ,
19- "aggregation_regress" ,
20- "annotations" ,
21- "apps" ,
22- "async" ,
23- "auth_tests" ,
24- "backends" ,
25- "basic" ,
26- "bulk_create" ,
27- "cache" ,
28- "check_framework" ,
29- "constraints" ,
30- "contenttypes_tests" ,
31- "context_processors" ,
32- "custom_columns" ,
33- "custom_lookups" ,
34- "custom_managers" ,
35- "custom_pk" ,
36- "datatypes" ,
37- "dates" ,
38- "datetimes" ,
39- "db_functions" ,
40- "defer" ,
41- "defer_regress" ,
42- "delete" ,
43- "delete_regress" ,
44- "empty" ,
45- "empty_models" ,
46- "expressions" ,
47- "expressions_case" ,
48- "field_defaults" ,
49- "file_storage" ,
50- "file_uploads" ,
51- "fixtures" ,
52- "fixtures_model_package" ,
53- "fixtures_regress" ,
54- "flatpages_tests" ,
55- "force_insert_update" ,
56- "foreign_object" ,
57- "forms_tests" ,
58- "from_db_value" ,
59- "generic_inline_admin" ,
60- "generic_relations" ,
61- "generic_relations_regress" ,
62- "generic_views" ,
63- "get_earliest_or_latest" ,
64- "get_object_or_404" ,
65- "get_or_create" ,
66- "i18n" ,
67- "indexes" ,
68- "inline_formsets" ,
69- "introspection" ,
70- "invalid_models_tests" ,
71- "known_related_objects" ,
72- "lookup" ,
73- "m2m_and_m2o" ,
74- "m2m_intermediary" ,
75- "m2m_multiple" ,
76- "m2m_recursive" ,
77- "m2m_regress" ,
78- "m2m_signals" ,
79- "m2m_through" ,
80- "m2m_through_regress" ,
81- "m2o_recursive" ,
82- "managers_regress" ,
83- "many_to_many" ,
84- "many_to_one" ,
85- "many_to_one_null" ,
86- "max_lengths" ,
87- "messages_tests" ,
88- "migrate_signals" ,
89- "migration_test_data_persistence" ,
90- "migrations" ,
91- "model_fields" ,
92- "model_forms" ,
93- "model_formsets" ,
94- "model_formsets_regress" ,
95- "model_indexes" ,
96- "model_inheritance" ,
97- "model_inheritance_regress" ,
98- "model_options" ,
99- "model_package" ,
100- "model_regress" ,
101- "model_utils" ,
102- "modeladmin" ,
103- "multiple_database" ,
104- "mutually_referential" ,
105- "nested_foreign_keys" ,
106- "null_fk" ,
107- "null_fk_ordering" ,
108- "null_queries" ,
109- "one_to_one" ,
110- "or_lookups" ,
111- "order_with_respect_to" ,
112- "ordering" ,
113- "pagination" ,
114- "prefetch_related" ,
115- "proxy_model_inheritance" ,
116- "proxy_models" ,
117- "queries" ,
118- "queryset_pickle" ,
119- "redirects_tests" ,
120- "reserved_names" ,
121- "reverse_lookup" ,
122- "save_delete_hooks" ,
123- "schema" ,
124- "select_for_update" ,
125- "select_related" ,
126- "select_related_onetoone" ,
127- "select_related_regress" ,
128- "serializers" ,
129- "servers" ,
130- "sessions_tests" ,
131- "shortcuts" ,
132- "signals" ,
133- "sitemaps_tests" ,
134- "sites_framework" ,
135- "sites_tests" ,
136- "string_lookup" ,
137- "swappable_models" ,
138- "syndication_tests" ,
139- "test_client" ,
140- "test_client_regress" ,
141- "test_runner" ,
142- "test_utils" ,
143- "timezones" ,
144- "transactions" ,
145- "unmanaged_models" ,
146- "update" ,
147- "update_only_fields" ,
148- "user_commands" ,
149- "validation" ,
150- "view_tests" ,
151- "xor_lookups" ,
152- # Add directories in django_mongodb_backend/tests
153- * sorted (
154- [
155- x .name
156- for x in (pathlib .Path (__file__ ).parent .parent .parent .resolve () / "tests" ).iterdir ()
157- ]
158- ),
7+ "gis_tests" ,
1598]
1609runtests = pathlib .Path (__file__ ).parent .resolve () / "runtests.py"
16110run_tests_cmd = f"python3 { runtests } %s --settings mongodb_settings -v 2"
Original file line number Diff line number Diff line change 3333 uses : actions/checkout@v4
3434 with :
3535 repository : ' mongodb-forks/django'
36- ref : ' mongodb-5.2.x '
36+ ref : ' mongogis '
3737 path : ' django_repo'
3838 persist-credentials : false
3939 - name : Install system packages for Django's Python test dependencies
Original file line number Diff line number Diff line change 3333 uses : actions/checkout@v4
3434 with :
3535 repository : ' mongodb-forks/django'
36- ref : ' mongodb-5.2.x '
36+ ref : ' mongogis '
3737 path : ' django_repo'
3838 persist-credentials : false
3939 - name : Install system packages for Django's Python test dependencies
You can’t perform that action at this time.
0 commit comments