aboutsummaryrefslogtreecommitdiffstats
path: root/test/apps
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2023-01-16 21:36:50 +0100
committerMatthias Baumgartner <dev@igsor.net>2023-01-16 21:36:50 +0100
commit58aaa864f9747d27c065739256d4c6635ca9b751 (patch)
tree9888ae0bd2345816d1ab479dd34b4c6b902c158a /test/apps
parent4f868bcb3be2658960eace3222563cc9a819366a (diff)
downloadbsie-58aaa864f9747d27c065739256d4c6635ca9b751.tar.gz
bsie-58aaa864f9747d27c065739256d4c6635ca9b751.tar.bz2
bsie-58aaa864f9747d27c065739256d4c6635ca9b751.zip
minor fixes
Diffstat (limited to 'test/apps')
-rw-r--r--test/apps/test_index.py6
1 files changed, 6 insertions, 0 deletions
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',