-
Notifications
You must be signed in to change notification settings - Fork 4
PR for Issues #7 #8
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
base: master
Are you sure you want to change the base?
Conversation
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.
fix #7
|
@raccon123 |
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.
Is this how?
README.md
Outdated
| ### Get variable | ||
| Get value of variable _my_var_ | ||
| Get value of variable _my_var_ | ||
| Note Throws error KeyError when Enviroment variable is not found |
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.
| Note Throws error KeyError when Enviroment variable is not found | |
| > Note: Throws error `KeyError` when Environment variable is not found | |
| > |
| return "" | ||
| if not suppress_echo: | ||
| click.echo("Environment Variable '{}' does not exist".format(name)) | ||
| raise KeyError |
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 have some concerns how this will work in CLI implementation. It will be a long unreadable traceback.
I think we need to raise a KeyError for Python module and just return empty and error message in CLI
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.
also unittests fail with current implementation. Need to fix it as well
|
No need to run unit test on This might work got unittest working on my machine. |
|
@raccon123 , @TimothyRou |
tests/test_setenv.py
Outdated
|
|
||
| # |
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.
| # |
tests/test_setenv.py
Outdated
| def run_checks(self, user): | ||
| # check that variable does not exist before start | ||
| user_list = ["--user"] if user else [] | ||
|
|
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.

No description provided.