Make thinks more useful
Some checks failed
buildbot/tox Build done.

Extract functionality from program.Program to api, so it can be used
from other python code.
And instead of adding predefined urls to root_urlconf, we should
/mount/ apps into a django project.
This commit is contained in:
2019-11-15 17:07:10 +01:00
parent a84c473866
commit 18613d3600
5 changed files with 98 additions and 22 deletions

View File

@@ -65,8 +65,8 @@ class ProgramTestCase(unittest.TestCase):
def test_create_existing_project_dir(self):
exitval = self._program(argv=['-c', self._project_dir])
self.assertEqual(os.EX_NOPERM, exitval, 'program() does not return os.EX_NOPERM'
' when project directory is not empty')
self.assertEqual(os.EX_SOFTWARE, exitval, 'program() does not return os.EX_SOFTWARE'
' when project directory is not empty')
def test_enable_django_deploy(self):
project_dir = os.path.join(str(self.tmpdir), 'pure_django')