Skip to content

Commit 441119d

Browse files
committed
discover tests in django_mongodb/tests
1 parent a40e0ae commit 441119d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/runtests.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"apps",
2222
"async",
2323
"auth_tests",
24-
"backend_",
2524
"backends",
2625
"basic",
2726
"bulk_create",
@@ -38,7 +37,6 @@
3837
"dates",
3938
"datetimes",
4039
"db_functions",
41-
"dbshell_",
4240
"defer",
4341
"defer_regress",
4442
"delete",
@@ -57,7 +55,6 @@
5755
"force_insert_update",
5856
"foreign_object",
5957
"forms_tests",
60-
"forms_tests_",
6158
"from_db_value",
6259
"generic_inline_admin",
6360
"generic_relations",
@@ -68,7 +65,6 @@
6865
"get_or_create",
6966
"i18n",
7067
"indexes",
71-
"indexes_",
7268
"inline_formsets",
7369
"introspection",
7470
"invalid_models_tests",
@@ -93,7 +89,6 @@
9389
"migration_test_data_persistence",
9490
"migrations",
9591
"model_fields",
96-
"model_fields_",
9792
"model_forms",
9893
"model_formsets",
9994
"model_formsets_regress",
@@ -120,9 +115,7 @@
120115
"proxy_model_inheritance",
121116
"proxy_models",
122117
"queries",
123-
"queries_",
124118
"queryset_pickle",
125-
"raw_query_",
126119
"redirects_tests",
127120
"reserved_names",
128121
"reverse_lookup",
@@ -156,6 +149,13 @@
156149
"validation",
157150
"view_tests",
158151
"xor_lookups",
152+
# Add directories in django_mongodb/tests
153+
*sorted(
154+
[
155+
x.name
156+
for x in (pathlib.Path(__file__).parent.parent.parent.resolve() / "tests").iterdir()
157+
]
158+
),
159159
]
160160
runtests = pathlib.Path(__file__).parent.resolve() / "runtests.py"
161161
run_tests_cmd = f"python3 {runtests} %s --settings mongodb_settings -v 2"

0 commit comments

Comments
 (0)