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 <[email protected]>
  • Loading branch information
shr-project committed Dec 11, 2020
1 parent 0e41388 commit 5881fd8
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 5881fd8

Please sign in to comment.