From c928e65001afc70b355f00563c999de1586e52a0 Mon Sep 17 00:00:00 2001 From: Tawakalt Date: Mon, 5 Feb 2024 15:14:00 +0100 Subject: [PATCH] add test --- tests/test_arguments.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/test_arguments.py diff --git a/tests/test_arguments.py b/tests/test_arguments.py new file mode 100644 index 000000000..4df2806e7 --- /dev/null +++ b/tests/test_arguments.py @@ -0,0 +1,12 @@ +import rasa_sdk.endpoint as ep + + +def test_arg_parser_endpoints(): + parser = ep.create_argument_parser() + args = ["--endpoints", "endpoint.yml"] + cmdline_args = parser.parse_args(args) + assert cmdline_args.endpoints == "endpoint.yml" + + help_text = parser.format_help() + assert "--endpoints ENDPOINTS" in help_text + assert " Configuration file for tracing as a yml file." in help_text