Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tawakalt committed Feb 5, 2024
1 parent 36ee124 commit c928e65
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_arguments.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c928e65

Please sign in to comment.