heinzel #4

Merged
heinzel merged 5 commits from heinzel into master 2019-11-17 14:08:46 +01:00
2 changed files with 13 additions and 1 deletions
Showing only changes of commit cbfdb188b1 - Show all commits

View File

@@ -143,6 +143,7 @@ class DjangoProjectTestCase(DjangoDeployTestCase):
'django_deploy.tests.fake_app2',
]
self.assert_installed_apps(project_dir, installed_apps)
self.assert_urlpatterns(project_dir, [])
def test_install_nonexisting_app(self):
project_dir = self._tmp_dir
@@ -190,6 +191,11 @@ class DjangoProjectTestCase(DjangoDeployTestCase):
('URLResolver', '^app2/', 'django_deploy.tests.fake_app2.urls'),
]
self.assert_urlpatterns(project_dir, expected_urlpatterns)
installed_apps = [
'django_deploy.tests.fake_app1',
'django_deploy.tests.fake_app2',
]
self.assert_installed_apps(project_dir, installed_apps)
def test_mount_unmountable_app(self):
project_dir = self._tmp_dir

View File

@@ -82,8 +82,8 @@ class ProgramTestCase(DjangoDeployTestCase):
'django_deploy.tests.fake_app1',
'django_deploy.tests.fake_app2',
]
self.assert_installed_apps(project_dir, installed_apps)
self.assert_urlpatterns(project_dir, [])
def test_install_apps_with_error(self):
project_dir = self._tmp_dir
@@ -122,6 +122,12 @@ class ProgramTestCase(DjangoDeployTestCase):
]
self.assert_urlpatterns(project_dir, urlpatterns)
installed_apps = [
'django_deploy.tests.fake_app1',
'django_deploy.tests.fake_app2',
]
self.assert_installed_apps(project_dir, installed_apps)
def test_mount_apps_with_errors(self):
project_dir = self._tmp_dir
self._program(argv=['-c', project_dir])