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:
@@ -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'),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user