-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix fasta in cli #448
Fix fasta in cli #448
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.
Did you forget to check in the CLI testing code? 😄 🤔
# TODO add tests for _get_raw_path_list_from_args_and_config | ||
|
||
|
||
def test_get_config_from_args(): |
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.
why don't we get the error, that we can only update existing keys?
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.
because this is another dictionary update method 🙈
I'll add a TODO
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.
aah okay :D
{}, | ||
{ | ||
# TODO raw_paths missing here | ||
"library_path": mock_args.library, |
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.
Maybe I don't understand the mocking yet. why can we check for moch_args.library altough we never initialized it?
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.
yes, by default a mock will return another mock for any attribute, method, ... you try to access.
This test does not care what is passed, it just checks that the data is propagated as expected.
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.
maybe this sheds some light on mocking https://www.ines-panker.com/2020/06/01/python-mock.html
config=None, | ||
version=None, | ||
output="/output", | ||
fasta=None, |
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.
Same as before. we initialize it but now we don't check for it anymore?
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.
we initialize it as None
otherwise it will return a mock (cf. above)
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
# TODO add tests for _get_raw_path_list_from_args_and_config | ||
|
||
|
||
def test_get_config_from_args(): |
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.
aah okay :D
#prfromhell