mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-25 05:58:42 +01:00
run tests with mysql
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
# coding: utf-8
|
||||
|
||||
import os
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
from modoboa.lib.sysutils import exec_cmd
|
||||
|
||||
DB = os.environ.get("DB", "postgres")
|
||||
|
||||
|
||||
class DeployTest(unittest.TestCase):
|
||||
dbtype = "postgres"
|
||||
dbtype = DB.lower()
|
||||
dbhost = "localhost"
|
||||
projname = "modoboa_test"
|
||||
dbuser = "postgres"
|
||||
dbpassword = ""
|
||||
dbuser = DB == "MYSQL" and "modoboa" or "postgres"
|
||||
dbpassword = DB == "MYSQL" and "modoboa" or ""
|
||||
|
||||
def setUp(self):
|
||||
self.workdir = tempfile.mkdtemp()
|
||||
|
||||
Reference in New Issue
Block a user