-
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
adding sort shortest to longest and vice versa #41
base: main
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.
This is reasonably straightforward - but one philosophical question: Could you instead check for invalid pathways upon creation of a list of pathways? I guess that might not make sense because you can't control where a list of pathways comes from, but you could check for invalid pathways in the lists you do generate. Or do those still represent useful information in some instances?
{(5.3)}]) | ||
def test_check_for_invalid_pathways_type_error(pathways): | ||
with pytest.raises(TypeError) as excinfo: | ||
obj = pa.sort_by_longest(pathways) |
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 not just call check_for_invalid_pathways
here?
obs = pa.check_for_invalid_pathways(pathways) | ||
assert obs is 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.
Does it make more sense to some how test that there is no exception?
Not sure if this is a priority @nuclearkatie , but it would be nice to clear this up. |
pathway_analysis
(coveralls)pathway_analysis
and tests