mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Added debug
This commit is contained in:
@@ -25,20 +25,13 @@ class DeployTest(unittest.TestCase):
|
||||
self.workdir = tempfile.mkdtemp()
|
||||
|
||||
def test_silent(self):
|
||||
dburl = "default:%s://%s:%s@%s:%s/%s" % (
|
||||
self.dbtype,
|
||||
self.dbuser,
|
||||
self.dbpassword,
|
||||
self.dbhost,
|
||||
self.dbport,
|
||||
"modoboa",
|
||||
)
|
||||
dburl = f"default:{self.dbtype}://{self.dbuser}:{self.dbpassword}@{self.dbhost}:{self.dbport}/modoboa"
|
||||
cmd = (
|
||||
"modoboa-admin.py deploy --collectstatic "
|
||||
"--dburl %s --domain %s --admin-username admin %s"
|
||||
% (dburl, "localhost", self.projname)
|
||||
f"modoboa-admin.py deploy --collectstatic "
|
||||
f"--dburl {dburl} --domain localhost --admin-username admin {self.projname}"
|
||||
)
|
||||
code, output = exec_cmd(cmd, cwd=self.workdir)
|
||||
print(output)
|
||||
self.assertEqual(code, 0)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user