Skip to content

Commit

Permalink
[rospack.py] Added a test for the expected value (#133 (comment)).
Browse files Browse the repository at this point in the history
  • Loading branch information
130s committed May 31, 2020
1 parent 77364e1 commit 77ff090
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_rospkg_catkin_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def test_licenses():
def test_get_licenses():
"""Check licenses from all packages in the dependency chain"""
rospack = rospkg.rospack.RosPack(ros_paths=[search_path])
licenses_list = [None, "MIT", "BSD", "LGPL"] # Licenses of 'bar and 'foo'. License for some deps are undetermined so 'None'.
licenses = rospack.get_licenses("bar", implicit=True)
assert("MIT" in licenses)
assert("BSD" in licenses)
assert("LGPL" in licenses)
assert(set(licenses) == set(licenses_list))

0 comments on commit 77ff090

Please sign in to comment.