Skip to content

Commit

Permalink
Merge pull request #39 from yzainee/parsers
Browse files Browse the repository at this point in the history
tests added
  • Loading branch information
yzainee-zz authored Jun 10, 2019
2 parents 5c17404 + 572c751 commit c5d5879
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,15 @@ def test_get_latest_versions_for_ep():
package_versions = get_latest_versions_for_ep("npm", "lerna-tt-pk2-sy")
assert package_versions is not None

package_versions = get_latest_versions_for_ep("npm", "abyzdeopkl")
assert not package_versions

package_versions = get_latest_versions_for_ep("maven", "abyzdeopkl")
assert not package_versions

package_versions = get_latest_versions_for_ep("pypi", "abyzdeopkl")
assert not package_versions

with pytest.raises(ValueError):
get_latest_versions_for_ep("cobol", "cds-parsers")

Expand Down

0 comments on commit c5d5879

Please sign in to comment.