From 7c9455749eadf21cb69987c3b96bd76ea4f7b9ea Mon Sep 17 00:00:00 2001 From: Vincent Date: Mon, 27 Apr 2020 20:41:48 +0200 Subject: [PATCH] added test + windows fix --- test_cli.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test_cli.py b/test_cli.py index b832aeb83b5a..71c9c2abede9 100644 --- a/test_cli.py +++ b/test_cli.py @@ -35,3 +35,12 @@ def test_data_convert_help(run: Callable[..., RunResult]): for i, line in enumerate(lines): assert output.outlines[i] == line + + +def test_version_print_lines(run: Callable[..., RunResult]): + output = run("--version") + output_text = "".join(output.outlines) + assert "Rasa Version" in output_text + assert "Python Version" in output_text + assert "Operating System" in output_text + assert "Python Path" in output_text