|
def test_citations(url, expected): |
|
my_software = Software(url) |
|
my_software.find_metadata() |
|
assert my_software.citation_plain == expected |
The general test coverage designated above, for the items generated in production_tests.py (I think?), doesn't cover all of the use cases specified on the website.
Namely, I was thinking about cases where simply the name of the package was typed in, for example 'numpy', 'pandas', or 'scipy'. I would expect that to be a fairly common use case, no? Currently it seems that only one of those cases ('scipy') works reliably.
Also, great tool! Hope it achieves success.
citeas-api/test/test_software.py
Lines 196 to 199 in 9a0da10
The general test coverage designated above, for the items generated in production_tests.py (I think?), doesn't cover all of the use cases specified on the website.
Namely, I was thinking about cases where simply the name of the package was typed in, for example 'numpy', 'pandas', or 'scipy'. I would expect that to be a fairly common use case, no? Currently it seems that only one of those cases ('scipy') works reliably.
Also, great tool! Hope it achieves success.