Skip to content

Commit

Permalink
tests: update expectations
Browse files Browse the repository at this point in the history
mainly due to the updates of the used libs

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
  • Loading branch information
priv-kweihmann committed Nov 1, 2024
1 parent bc03ec3 commit 5655c88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions tests/test_problems.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ def _get_problems(inbound, outbound):
def test_problems_no():
assert len(_get_problems('MIT', 'GPL-2.0-only')) == 0

def test_problems_uknonwn():
assert len(_get_problems('HPND', 'GPL-2.0-only')) == 1

def test_problems_undefined():
assert len(_get_problems('NONESUCH', 'GPL-2.0-only')) == 1

Expand Down
2 changes: 1 addition & 1 deletion tests/test_simplified.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_simplify():
_test_expression(['MIT and MIT or BSD3'], '{"original": "MIT and MIT or BSD3", "simplified": "BSD-3-Clause OR MIT"}')
_test_expression(['GPL-2.0-only'], '{"original": "GPL-2.0-only", "simplified": "GPL-2.0-only"}')
_test_expression(['GPL-2.0-or-later'], '{"original": "GPL-2.0-or-later", "simplified": "GPL-2.0-only OR GPL-3.0-only"}')
_test_expression(['GPL-2.0-or-later and MIT'], '{"original": "GPL-2.0-or-later and MIT", "simplified": "MIT AND (GPL-2.0-only OR GPL-3.0-only)"}')
_test_expression(['GPL-2.0-or-later and MIT'], '{"original": "GPL-2.0-or-later and MIT", "simplified": "(GPL-2.0-only AND MIT) OR (GPL-3.0-only AND MIT)"}')
_test_expression(['MIT and GPL-2.0-only WITH Classpath-exception-2.0 and MIT'], '{"original": "MIT and GPL-2.0-only WITH Classpath-exception-2.0 and MIT", "simplified": "GPL-2.0-only WITH Classpath-exception-2.0 AND MIT"}')


0 comments on commit 5655c88

Please sign in to comment.