mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-26 06:08:38 +01:00
@@ -35,8 +35,10 @@ class DeployTest(unittest.TestCase):
|
||||
|
||||
def test_standard(self):
|
||||
timeout = 2
|
||||
cmd = "modoboa-admin.py deploy --syncdb --collectstatic {0}".format(
|
||||
self.projname)
|
||||
cmd = (
|
||||
"modoboa-admin.py deploy --dbaction install --collectstatic {0}"
|
||||
.format(self.projname)
|
||||
)
|
||||
child = pexpect.spawn(cmd, cwd=self.workdir)
|
||||
fout = open('install_from_scratch.log', 'w')
|
||||
child.logfile = fout
|
||||
@@ -63,8 +65,8 @@ class DeployTest(unittest.TestCase):
|
||||
% (self.dbtype, self.dbuser, self.dbpassword,
|
||||
self.dbhost, self.projname)
|
||||
cmd = (
|
||||
"modoboa-admin.py deploy --syncdb --collectstatic --dburl %s "
|
||||
"--extensions all --domain %s %s"
|
||||
"modoboa-admin.py deploy --dbaction install --collectstatic "
|
||||
"--dburl %s --extensions all --domain %s %s"
|
||||
% (dburl, 'localhost', self.projname)
|
||||
)
|
||||
code, output = exec_cmd(cmd, cwd=self.workdir)
|
||||
|
||||
Reference in New Issue
Block a user