Skip to content

Commit

Permalink
tests: update tests to match with using translate_license function
Browse files Browse the repository at this point in the history
* replace spaces with dashes in these 4 cases which weren't mapped to
  valid SPDX (which would be without spaces)

Signed-off-by: Martin Jansa <martin.jansa@lge.com>
  • Loading branch information
shr-project committed Dec 11, 2020
1 parent 4a03c04 commit 4d9fa14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ def test_get_license(self):
ret = get_license('Mozilla Public License Version 1.1')
self.assertEqual(ret, 'MPL-1.1')
ret = get_license('Mozilla Public License')
self.assertEqual(ret, 'Mozilla Public License')
self.assertEqual(ret, 'Mozilla-Public-License')
ret = get_license('BSD License 2.0')
self.assertEqual(ret, 'BSD License 2.0')
self.assertEqual(ret, 'BSD-License-2.0')
ret = get_license('MIT')
self.assertEqual(ret, 'MIT')
ret = get_license('Creative Commons')
self.assertEqual(ret, 'Creative Commons')
self.assertEqual(ret, 'Creative-Commons')
ret = get_license('United States Government Purpose')
self.assertEqual(ret, 'United States Government Purpose')
self.assertEqual(ret, 'United-States-Government-Purpose')

def test_delta_msg(self):
"""Test the delta message generated for the PR"""
Expand Down

0 comments on commit 4d9fa14

Please sign in to comment.