-
Notifications
You must be signed in to change notification settings - Fork 80
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
check lca database error text #1415
Comments
@ctb Can I try working on this issue? I'm a little unclear on what exactly needs to be done. |
go for it! this is the key instruction:
For an example of us doing something similar to this, see |
note that you can run just the two tests you are working on by doing |
Will try, thanks! |
@ctb I can't seem to find the functions |
argh, I think they're buried in some pull request, actually. I'll go find them and report back :) |
ahh! they are here, #1406. if you want to work on this, you can! You will need to start from branch Alternatively, you could wait until #1406 is merged :). apologies for the confusion! |
whups, well, #1406 is merged - so you should be able to update to |
Alright, thanks! |
@ctb Could you provide some clarification on what exactly needs to be done? |
please see this comment and give it a try; once you have an open PR with some changes, I'd be happy to help further. |
Alright, I'll do that. Thanks! |
In
src/sourmash/lca/lca_db.py
, theLCA_Database.load(...)
class method checks to make sure that the filename is a directory, and if it is not, it raises aValueError
with the following string:"'{db_name}' is not a file and cannot be loaded as an LCA database"
. Currently this string is not checked for in the relevant tests.Add a check for this string value in
tests/test_lca.py
functionstest_databases_load_fail_on_dir
andtest_databases_load_fail_on_not_exist
by looking atstr(exc.value)
after thepytest.raises
block.The text was updated successfully, but these errors were encountered: