Skip to content

Commit

Permalink
style: pre-commit.ci auto fixes [...]
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 14, 2025
1 parent 1095421 commit 5c04f50
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions iscript/tests/test_autograph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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):
Expand Down

0 comments on commit 5c04f50

Please sign in to comment.