Skip to content

Commit

Permalink
Remove pytest.param alias _p
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed Oct 12, 2024
1 parent b4b4881 commit d02e017
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/plugins/test_lyrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
"Beets song": "via plugins, beets becomes a panacea",
}

_p = pytest.param


def xfail_on_ci(msg: str) -> pytest.MarkDecorator:
return pytest.mark.xfail(
Expand Down Expand Up @@ -247,7 +245,7 @@ def file_name(self):
"https://www.lacoccinelle.net/259956-the-beatles-lady-madonna.html",
)
),
_p(
pytest.param(
"Lady Madonna",
"https://www.azlyrics.com/lyrics/beatles/ladymadonna.html",
marks=xfail_on_ci("AZLyrics is blocked by Cloudflare"),
Expand Down Expand Up @@ -394,12 +392,12 @@ def test_synced_config_option(self, fetch_lyrics, expected_lyrics):
@pytest.mark.parametrize(
"response_data, expected_lyrics",
[
_p(
pytest.param(
{"syncedLyrics": "", "plainLyrics": "la la la"},
"la la la",
id="pick plain lyrics",
),
_p(
pytest.param(
{
"statusCode": 404,
"error": "Not Found",
Expand Down

0 comments on commit d02e017

Please sign in to comment.