mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Fix unit tests.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -245,8 +245,6 @@ class MapFilesTestCase(MapFilesTestCaseMixin, TestCase):
|
||||
|
||||
"""Test case for relaydomains."""
|
||||
|
||||
extension = "relaydomains"
|
||||
|
||||
MAP_FILES = [
|
||||
"sql-relaydomains.cf",
|
||||
"sql-relaydomains-transport.cf",
|
||||
|
||||
Reference in New Issue
Block a user