Fix unit test to run local PRs + fix tutorial #850
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enables unit testing of local scripts with
--test_local
flag; borrows thetest_bigbio_hub.py
script. I tested this by making a copy of scitail astest_scitail
in the biodatasets folder, andTo replicate:
bigbio/biodatasets
ascp -r bigbio/biodatasets/scitail bigbio/biodatasets/test_scitail
.test_scitail.py
test_scitail
folderpython -m tests.test_bigbio_hub test_scitail --test_local
Note- the contributions guide makes a reference to the
templates
folder that has 2 scripts; bigbiohub and a template file that can be used to fill-in-the-blanks. To avoid a deprecated script, maybe we should automate that for every new update, bigbiohub is either copied into the template folder OR I can just change the tutorial to reflect it's actual "default" location ofbigbio/hub/bigbiohub.py
TODO: on 2023/01/03 I'm going to add one more small change that also tests whether the METADATA is in the acceptable set of values to ensure standardization!
@galtay