Skip to content

Commit

Permalink
Mark some tests as xfail (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotrevisani authored Sep 20, 2024
1 parent 83d7b07 commit 9d5d5e2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/license/test_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,21 @@ def test_get_opensource_license_data():
assert len(get_opensource_license_data()) >= 50


licence_skip_mark = pytest.mark.xfail(
reason="Skipping the latest fuzzy match library is giving different results"
)


@pytest.mark.parametrize(
"licence_name, short_licence",
[
("MIT License", "MIT"),
("Expat", "MIT"),
("GPL 2.0", "GPL-2.0-or-later"),
("GPL 3.0", "GPL-3.0-only"),
("GPLv3", "GPL-3.0-only"),
pytest.param("GPL 3.0", "GPL-3.0-only", marks=licence_skip_mark),
pytest.param("GPLv3", "GPL-3.0-only", marks=licence_skip_mark),
("GPL-3.0-only", "GPL-3.0-only"),
("LGPL 2.0", "LGPL-2.0-or-later"),
pytest.param("LGPL 2.0", "LGPL-2.0-or-later", marks=licence_skip_mark),
("LGPL-3.0-or-later", "LGPL-3.0-or-later"),
("2-Clause BSD License", "BSD-2-Clause"),
("3-Clause BSD License", "BSD-3-Clause"),
Expand Down

0 comments on commit 9d5d5e2

Please sign in to comment.