mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Merge branch 'master' into refactoring
This commit is contained in:
@@ -65,3 +65,9 @@ The following external libraries are provided with Modoboa:
|
||||
.. |downloads| image:: https://pypip.in/d/modoboa/badge.png
|
||||
:alt: Downloads from Pypi
|
||||
:target: https://crate.io/packages/modoboa/
|
||||
|
||||
|
||||
.. image:: https://d2weczhvl823v0.cloudfront.net/tonioo/modoboa/trend.png
|
||||
:alt: Bitdeli badge
|
||||
:target: https://bitdeli.com/free
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ def runcmd(cmd, **kwargs):
|
||||
output = p.communicate()[0]
|
||||
return p.returncode, output
|
||||
|
||||
|
||||
class DeployTest(unittest.TestCase):
|
||||
dbtype = "mysql"
|
||||
dbhost = "localhost"
|
||||
@@ -42,7 +43,7 @@ class DeployTest(unittest.TestCase):
|
||||
child = pexpect.spawn(cmd, cwd=self.workdir)
|
||||
fout = open('install_from_scratch.log','w')
|
||||
child.logfile = fout
|
||||
child.expect("Database type \(mysql or postgres\):", timeout=timeout)
|
||||
child.expect("Database type \(mysql, postgres or sqlite3\):", timeout=timeout)
|
||||
child.sendline(self.dbtype)
|
||||
child.expect("Database host \(default: 'localhost'\):", timeout=timeout)
|
||||
child.sendline(self.dbhost)
|
||||
|
||||
Reference in New Issue
Block a user