This will pass, but you can test the metadata works as intended by modifying the _LANGUAGES and _LICENSES category. I made 2 examples
NOTES
I found that the default test script has a weird license? APACHE_p2.0; we should look into this?
test_metadata now explicitly checks the elements of _LANGUAGES and _LICENSES for the content; this explicitly reads languages.json and licenses.json to ensure that all metadata elements adhere to our curated list. Currently, this is a AssertionError, we may want to think about making this flexible, because a test will fail unless we have already seen this license + language before.
Supercedes #850
TLDR:
--test_local
flag in order to test hub submissionslanguages.json
andlicenses.json
How to run:
1) There is a test folder here:
bigbio/hub/hub_repos/test_scitail
. This includes a dataloading script and a copy of the bigbiohub.2) You can test the unit tests in the main bigbio directory (parent of the
tests
folder) by running the following command:This will pass, but you can test the metadata works as intended by modifying the
_LANGUAGES
and_LICENSES
category. I made 2 examplesNOTES
I found that the default test script has a weird license?
APACHE_p2.0
; we should look into this?test_metadata
now explicitly checks the elements of_LANGUAGES
and_LICENSES
for the content; this explicitly readslanguages.json
andlicenses.json
to ensure that all metadata elements adhere to our curated list. Currently, this is a AssertionError, we may want to think about making this flexible, because a test will fail unless we have already seen this license + language before.