diff --git a/tests/test_problems.py b/tests/test_problems.py index 3aeae81..7af63b2 100644 --- a/tests/test_problems.py +++ b/tests/test_problems.py @@ -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 diff --git a/tests/test_simplified.py b/tests/test_simplified.py index 726ecd4..8ee5966 100644 --- a/tests/test_simplified.py +++ b/tests/test_simplified.py @@ -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"}')