FIX #5
All checks were successful
buildbot/tox Build done.

Also drag some mount stuff from hooks.get_urlpatterns to
DjangoDeployProject.mount_app().
But this could damage previous written mounts within django_deploy.json.
This commit is contained in:
2019-11-19 14:12:37 +01:00
parent dc7784e76c
commit b812de6c80
4 changed files with 15 additions and 8 deletions

View File

@@ -112,7 +112,7 @@ class ProgramTestCase(DjangoDeployTestCase):
'-c',
'--mount-app', 'django_deploy.tests.fake_app1', 'app1',
'--mount-app', 'django_deploy.tests.fake_app1', 'app1',
'-m', 'django_deploy.tests.fake_app2', 'app2',
'-m', 'django_deploy.tests.fake_app2', 'app2/',
project_dir
]
exitval = self._program(argv=argv)
@@ -138,7 +138,7 @@ class ProgramTestCase(DjangoDeployTestCase):
project_dir = self._tmp_dir
self._program(argv=['-c', project_dir])
argv = [
'-m', 'django_deploy.tests.fake_app1', 'app1',
'-m', 'django_deploy.tests.fake_app1', '/',
'-m', 'django_deploy.tests.fake_app0', 'app0',
'-m', 'django_deploy.tests.fake_app2', 'app2',
project_dir
@@ -148,7 +148,7 @@ class ProgramTestCase(DjangoDeployTestCase):
# Similar code from test_api.test_mount_apps
expected_urlpatterns = [
('URLResolver', '^app1/', 'django_deploy.tests.fake_app1.urls'),
('URLResolver', '^$', 'django_deploy.tests.fake_app1.urls'),
('URLResolver', '^app2/', 'django_deploy.tests.fake_app2.urls'),
]