-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ATO-1661] Add --endpoints
flag to rasa-sdk cli
#1072
Conversation
f80680b
to
c928e65
Compare
rasa_sdk/cli/arguments.py
Outdated
parser.add_argument( | ||
"--endpoints", | ||
default=DEFAULT_ENDPOINTS_PATH, | ||
help="Configuration file for tracing as a yml file.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment: I expect the assistant endpoints file would be used which contains more details than just tracing config. I'd rephrase this to reflect that, unless you recommend separating the tracing config in a diff config file, in which case we should rename the arg?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏻 I left one improvement suggestion for the test.
tests/test_arguments.py
Outdated
import rasa_sdk.endpoint as ep | ||
|
||
|
||
def test_arg_parser_endpoints(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final comment: can we parametrize this test so that it checks for default in one test, and for the specified param in another case?
66e7a0d
to
e9d7183
Compare
Proposed changes:
Status (please check what you already did):
black
(please check Readme for instructions)