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