Skip to content

Commit c27087e

Browse files
authored
Merge pull request #32 from aclark4life/main
Refactor
2 parents b52012e + 0eabc3b commit c27087e

18 files changed

+690
-470
lines changed

django_mongodb_cli/repo.py

Lines changed: 284 additions & 317 deletions
Large diffs are not rendered by default.

django_mongodb_cli/config.py renamed to django_mongodb_cli/settings.py

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
},
2626
"settings": {
2727
"test": {
28-
"source": join("config", "django", "django_settings.py"),
28+
"source": join("test", "settings", "django.py"),
2929
"target": join("src", "django", "tests", "mongo_settings.py"),
3030
},
3131
"migrations": {
32-
"source": join("config", "django", "django_settings.py"),
32+
"source": join("test", "settings", "django.py"),
3333
"target": join("src", "django", "tests", "mongo_settings.py"),
3434
},
3535
"module": {
@@ -44,7 +44,7 @@
4444
},
4545
"django-filter": {
4646
"apps_file": {
47-
"source": join("config", "filter", "filter_apps.py"),
47+
"source": join("test", "apps", "django_filter.py"),
4848
"target": join("src", "django-filter", "tests", "mongo_apps.py"),
4949
},
5050
"test_command": "./runtests.py",
@@ -61,11 +61,11 @@
6161
"clone_dir": join("src", "django-filter"),
6262
"settings": {
6363
"test": {
64-
"source": join("config", "filter", "filter_settings.py"),
64+
"source": join("test", "settings", "django_filter.py"),
6565
"target": join("src", "django-filter", "tests", "settings.py"),
6666
},
6767
"migrations": {
68-
"source": join("config", "filter", "filter_settings.py"),
68+
"source": join("test", "settings", "django_filter.py"),
6969
"target": join("src", "django-filter", "tests", "settings.py"),
7070
},
7171
"module": {
@@ -77,7 +77,7 @@
7777
},
7878
"django-rest-framework": {
7979
"apps_file": {
80-
"source": join("config", "rest_framework", "rest_framework_apps.py"),
80+
"source": join("test", "apps", "rest_framework.py"),
8181
"target": join("src", "django-rest-framework", "tests", "mongo_apps.py"),
8282
},
8383
"migrations_dir": {
@@ -89,13 +89,11 @@
8989
"clone_dir": join("src", "django-rest-framework"),
9090
"settings": {
9191
"test": {
92-
"source": join(
93-
"config", "rest_framework", "rest_framework_settings.py"
94-
),
92+
"source": join("test", "settings", "rest_framework.py"),
9593
"target": join("src", "django-rest-framework", "tests", "conftest.py"),
9694
},
9795
"migrations": {
98-
"source": join("config", "rest_framework", "rest_framework_migrate.py"),
96+
"source": join("test", "settings", "rest_framework_migrations.py"),
9997
"target": join("src", "django-rest-framework", "tests", "conftest.py"),
10098
},
10199
"module": {
@@ -107,7 +105,7 @@
107105
},
108106
"wagtail": {
109107
"apps_file": {
110-
"source": join("config", "wagtail", "wagtail_apps.py"),
108+
"source": join("test", "apps", "wagtail.py"),
111109
"target": join("src", "wagtail", "wagtail", "test", "mongo_apps.py"),
112110
},
113111
"migrations_dir": {
@@ -124,13 +122,13 @@
124122
"clone_dir": join("src", "wagtail"),
125123
"settings": {
126124
"test": {
127-
"source": join("config", "wagtail", "wagtail_settings.py"),
125+
"source": join("test", "settings", "wagtail.py"),
128126
"target": join(
129127
"src", "wagtail", "wagtail", "test", "mongo_settings.py"
130128
),
131129
},
132130
"migrations": {
133-
"source": join("config", "wagtail", "settings_wagtail.py"),
131+
"source": join("test", "settings", "wagtail.py"),
134132
"target": join(
135133
"src", "wagtail", "wagtail", "test", "mongo_settings.py"
136134
),
@@ -147,7 +145,7 @@
147145
},
148146
"django-debug-toolbar": {
149147
"apps_file": {
150-
"source": join("config", "debug_toolbar", "debug_toolbar_apps.py"),
148+
"source": join("test", "apps", "debug_toolbar.py"),
151149
"target": join(
152150
"src", "django-debug-toolbar", "debug_toolbar", "mongo_apps.py"
153151
),
@@ -157,13 +155,13 @@
157155
"clone_dir": join("src", "django-debug-toolbar"),
158156
"settings": {
159157
"test": {
160-
"source": join("config", "debug_toolbar", "debug_toolbar_settings.py"),
158+
"source": join("test", "settings", "debug_toolbar.py"),
161159
"target": join(
162160
"src", "django-debug-toolbar", "debug_toolbar", "mongo_settings.py"
163161
),
164162
},
165163
"migrations": {
166-
"source": join("config", "debug_toolbar", "debug_toolbar_settings.py"),
164+
"source": join("test", "settings", "debug_toolbar.py"),
167165
"target": join(
168166
"src", "django-debug-toolbar", "debug_toolbar", "mongo_settings.py"
169167
),
@@ -179,7 +177,7 @@
179177
},
180178
"django-mongodb-extensions": {
181179
"apps_file": {
182-
"source": join("config", "extensions", "debug_toolbar_apps.py"),
180+
"source": join("test", "apps", "django_mongodb_extensions.py"),
183181
"target": join(
184182
"src",
185183
"django-mongodb-extensions",
@@ -192,7 +190,7 @@
192190
"clone_dir": join("src", "django-mongodb-extensions"),
193191
"settings": {
194192
"test": {
195-
"source": join("config", "extensions", "debug_toolbar_settings.py"),
193+
"source": join("test", "settings", "django_mongodb_extensions.py"),
196194
"target": join(
197195
"src",
198196
"django-mongodb-extensions",
@@ -201,7 +199,7 @@
201199
),
202200
},
203201
"migrations": {
204-
"source": join("config", "extensions", "debug_toolbar_settings.py"),
202+
"source": join("test", "extensions", "debug_toolbar_settings.py"),
205203
"target": join(
206204
"src",
207205
"django-mongodb-extensions",
@@ -225,16 +223,16 @@
225223
"test_dir": join("src", "django-allauth"),
226224
"clone_dir": join("src", "django-allauth"),
227225
"apps_file": {
228-
"source": join("config", "allauth", "allauth_apps.py"),
226+
"source": join("test", "apps", "allauth.py"),
229227
"target": join("src", "django-allauth", "allauth", "mongo_apps.py"),
230228
},
231229
"settings": {
232230
"test": {
233-
"source": join("config", "allauth", "allauth_settings.py"),
231+
"source": join("test", "settings", "allauth.py"),
234232
"target": join("src", "django-allauth", "allauth", "mongo_settings.py"),
235233
},
236234
"migrations": {
237-
"source": join("config", "allauth", "allauth_settings.py"),
235+
"source": join("test", "settings", "allauth.py"),
238236
"target": join("src", "django-allauth", "allauth", "mongo_settings.py"),
239237
},
240238
"module": {

0 commit comments

Comments
 (0)