-
Notifications
You must be signed in to change notification settings - Fork 0
Refactoring/260 added unit tests for cli param wrappers #261
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
Refactoring/260 added unit tests for cli param wrappers #261
Conversation
| metavar="DB_SCHEMA", | ||
| type=str, | ||
| help="Database schema for installing UDFs of Exasol extensions", | ||
| scs_key=CKey.db_schema, |
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.
This had been forgotten in the last PR
|
|
||
| @property | ||
| def arg_name(self) -> str: | ||
| return self._args[0] |
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.
what if *args is empty?
Default value here, like ""?
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.
Or maybe check in constructor already that *args is not empty....
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.
I was lazy. You are right.
See next push adding a fix.
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.
Thanks.
Annoying but excellent finding.
See latest push addressing your findings.
| envvar="KWARG_ENVVAR", | ||
| metavar="NAME", | ||
| type=str, | ||
| default="Robert", |
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.
Badesalz?
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.
Jaja der Robert.... :)
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.
Sorry I know some Badesalz but "Robert" was unknown to me. 🙂
I just picked a random name.
| Represents a CLI argument for the SCS command. | ||
| """ | ||
|
|
||
| def __init__(self, name: str, scs_key: CKey | None = None, **kwargs): |
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.
Much better
|




Closes #260