From 5ec0710d266a2c299d4f1743a5b2fdbfdef71222 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sun, 4 Oct 2020 22:14:06 +0200 Subject: [PATCH] Enhance test to test timestamp output --- tests/test_dosage.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_dosage.py b/tests/test_dosage.py index b72720cc8..9fdf8e41f 100644 --- a/tests/test_dosage.py +++ b/tests/test_dosage.py @@ -83,8 +83,10 @@ class TestDosage(object): with pytest.raises(SystemExit): cmd(option) - def test_module_help(self): - cmd_ok("-m", "xkcd") + def test_module_help(self, capfd): + cmd_ok("-m", "-t", "xkcd") + out, err = capfd.readouterr() + assert re.match(r'([0-9][0-9]:){2}.. xkcd>', out) def test_no_comics_specified(self): cmd_err()