From 5c04f5016e0525039a96462183e53a6e82bbdd7e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 21:59:09 +0000 Subject: [PATCH] style: pre-commit.ci auto fixes [...] --- iscript/tests/test_autograph.py | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/iscript/tests/test_autograph.py b/iscript/tests/test_autograph.py index 76233eb44..18a9b18e0 100644 --- a/iscript/tests/test_autograph.py +++ b/iscript/tests/test_autograph.py @@ -261,13 +261,14 @@ async def test_bad_autograph_method(): @pytest.mark.asyncio -@pytest.mark.parametrize("blessed,fmt,expected_url", - ( - (True, "autograph_widevine", "https://autograph-hsm.dev.mozaws.net"), - (False, "autograph_widevine", "https://autograph-hsm.dev.mozaws.net"), - (False, "stage_autograph_widevine", "https://autograph-stage.dev.mozaws.net"), - (False, "gcp_prod_autograph_widevine", "https://autograph-gcp.dev.mozaws.net"), - ) +@pytest.mark.parametrize( + "blessed,fmt,expected_url", + ( + (True, "autograph_widevine", "https://autograph-hsm.dev.mozaws.net"), + (False, "autograph_widevine", "https://autograph-hsm.dev.mozaws.net"), + (False, "stage_autograph_widevine", "https://autograph-stage.dev.mozaws.net"), + (False, "gcp_prod_autograph_widevine", "https://autograph-gcp.dev.mozaws.net"), + ), ) async def test_widevine_autograph(mocker, tmp_path, blessed, sign_config, fmt, expected_url): wv = mocker.patch("iscript.autograph.widevine") @@ -291,12 +292,13 @@ async def fake_call(url, *args, **kwargs): @pytest.mark.asyncio -@pytest.mark.parametrize("fmt,expected_url", - ( - ("autograph_widevine", "https://autograph-hsm.dev.mozaws.net"), - ("stage_autograph_widevine", "https://autograph-stage.dev.mozaws.net"), - ("gcp_prod_autograph_widevine", "https://autograph-gcp.dev.mozaws.net"), - ) +@pytest.mark.parametrize( + "fmt,expected_url", + ( + ("autograph_widevine", "https://autograph-hsm.dev.mozaws.net"), + ("stage_autograph_widevine", "https://autograph-stage.dev.mozaws.net"), + ("gcp_prod_autograph_widevine", "https://autograph-gcp.dev.mozaws.net"), + ), ) async def test_no_widevine(mocker, tmp_path, fmt, expected_url): async def fake_call(url, *args, **kwargs):