From fdbb552b086035bb3f3b8fc7a3586a40258c5d2a Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Thu, 5 Oct 2023 14:06:54 +0200 Subject: [PATCH] add test --- test/test_cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_cli.py b/test/test_cli.py index 7a5fc0d..648dd6e 100644 --- a/test/test_cli.py +++ b/test/test_cli.py @@ -85,7 +85,9 @@ class TestCLI: """Test the extended version information""" result = self.env.run("python-escpos", "version_extended") assert not result.stderr - # TODO test output + assert escpos.__version__ in result.stdout + # test that additional information on e.g. Serial is printed + assert "Serial" in result.stdout @pytest.mark.skip( reason="disable this test as it is not that easy anymore to predict the outcome of this call"