From dbfede6df1de470ca454c12b212086bfe5684766 Mon Sep 17 00:00:00 2001 From: Spitap Date: Fri, 3 Mar 2023 09:33:32 +0100 Subject: [PATCH] Fixed typo, updated test --- README.rst | 6 ++++++ modoboa_installer/utils.py | 2 +- tests.py | 6 +----- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index 5fa04ed..5a29a42 100644 --- a/README.rst +++ b/README.rst @@ -54,6 +54,12 @@ run the following command:: $ ./run.py --stop-after-configfile-check +If you updated your installer, your config file might be outdated. +The program will exit after the update, so you can check the config file +before continuing. To perform the update, run the following command:: + + $ ./run.py --update-configfile + An interactive mode is also available:: $ ./run.py --interactive diff --git a/modoboa_installer/utils.py b/modoboa_installer/utils.py index 00317d1..2b614a8 100644 --- a/modoboa_installer/utils.py +++ b/modoboa_installer/utils.py @@ -355,7 +355,7 @@ def update_config(path): dropped_sections = list(set(old_sections) - set(new_sections)) if len(dropped_sections) > 0: - printcolor("Follow section(s) will not be ported " + printcolor("Following section(s) will not be ported " "due to being deleted or renamed: " + ', '.join(dropped_sections), RED) diff --git a/tests.py b/tests.py index 55eabd1..42ec1b7 100644 --- a/tests.py +++ b/tests.py @@ -31,11 +31,7 @@ class ConfigFileTestCase(unittest.TestCase): def tearDown(self): """Delete temp dir.""" - out = StringIO() - sys.stdout = out - print(self.workdir) - #shutil.rmtree(self.workdir) - pass + shutil.rmtree(self.workdir) def test_configfile_generation(self): """Check simple case."""