Fix unit tests.

This commit is contained in:
Antoine Nguyen
2015-11-11 14:26:47 +01:00
parent 8d2dadfdd0
commit 565bb310a5
3 changed files with 3 additions and 7 deletions
-2
View File
@@ -9,8 +9,6 @@ class MapFilesTestCase(MapFilesTestCaseMixin, TestCase):
"""Test case for admin."""
extension = "admin"
MAP_FILES = [
"sql-domains.cf", "sql-domain-aliases.cf", "sql-aliases.cf",
"sql-maintain.cf"
+3 -3
View File
@@ -23,9 +23,9 @@ class MapFilesTestCaseMixin(object):
def _test_maps_generation(self, engine):
dburl = "{0}://user:password@localhost/testdb".format(engine)
code, output = exec_cmd(
"modoboa-admin.py postfix_maps --extensions {0}"
" --dburl {1} {2}".format(
self.extension, dburl, self.workdir
"modoboa-admin.py postfix_maps {0}--dburl {1} {2}".format(
"--extensions {} ".format(self.extension)
if self.extension else "", dburl, self.workdir
)
)
self.assertEqual(code, 0)
-2
View File
@@ -245,8 +245,6 @@ class MapFilesTestCase(MapFilesTestCaseMixin, TestCase):
"""Test case for relaydomains."""
extension = "relaydomains"
MAP_FILES = [
"sql-relaydomains.cf",
"sql-relaydomains-transport.cf",