From 97b98c9d098d6adcc9c2ce84fb1c66694ee998f5 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Tue, 28 Jan 2025 13:33:55 +0100 Subject: [PATCH] Fixed unit tests --- tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests.py b/tests.py index cfb0d14..80929fb 100644 --- a/tests.py +++ b/tests.py @@ -47,7 +47,7 @@ class ConfigFileTestCase(unittest.TestCase): def test_interactive_mode(self, mock_user_input): """Check interactive mode.""" mock_user_input.side_effect = [ - "0", "0", "", "", "", "", "" + "0", "0", "", "", "", "", "", "" ] with open(os.devnull, "w") as fp: sys.stdout = fp @@ -99,7 +99,7 @@ class ConfigFileTestCase(unittest.TestCase): def test_interactive_mode_letsencrypt(self, mock_user_input): """Check interactive mode.""" mock_user_input.side_effect = [ - "1", "admin@example.test", "0", "", "", "", "" + "0", "0", "1", "admin@example.test", "0", "", "", "", "" ] with open(os.devnull, "w") as fp: sys.stdout = fp @@ -126,8 +126,8 @@ class ConfigFileTestCase(unittest.TestCase): "example.test"]) self.assertTrue(os.path.exists(self.cfgfile)) self.assertIn( - "fail2ban modoboa automx rspamd clamav dovecot nginx razor " - "postfix uwsgi radicale", + "fail2ban modoboa automx amavis clamav dovecot nginx " + "postfix postwhite spamassassin uwsgi radicale opendkim", out.getvalue() ) self.assertNotIn(