From 58aaa864f9747d27c065739256d4c6635ca9b751 Mon Sep 17 00:00:00 2001 From: Matthias Baumgartner Date: Mon, 16 Jan 2023 21:36:50 +0100 Subject: minor fixes --- test/apps/test_index.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/apps/test_index.py') diff --git a/test/apps/test_index.py b/test/apps/test_index.py index c3960b8..7f5be8e 100644 --- a/test/apps/test_index.py +++ b/test/apps/test_index.py @@ -23,6 +23,12 @@ from bsie.apps.index import main ## code ## class TestIndex(unittest.TestCase): + def test_main_invalid(self): + outbuf = io.StringIO() + with contextlib.redirect_stdout(outbuf): + bsfs = main([os.path.join(os.path.dirname(__file__), 'inexistent-file.t')]) + self.assertEqual(outbuf.getvalue().strip(), '') + def test_main(self): bsfs = main([ '-r', -- cgit v1.2.3