mirror of
https://github.com/usestrix/strix.git
synced 2026-09-24 00:51:20 +00:00
style(tests): apply ruff format to install script tests
This commit is contained in:
parent
9ff957b7eb
commit
dbb0a58466
1 changed files with 2 additions and 6 deletions
|
|
@ -203,9 +203,7 @@ def test_installer_downloads_and_runs_linux_arm64_release(tmp_path: Path) -> Non
|
|||
gh_log = (tmp_path / "gh.log").read_text(encoding="utf-8")
|
||||
assert "--repo usestrix/strix" in gh_log
|
||||
assert "--bundle strix-linux-arm64.intoto.jsonl" in gh_log
|
||||
assert (
|
||||
"--signer-workflow usestrix/strix/.github/workflows/build-release.yml" in gh_log
|
||||
)
|
||||
assert "--signer-workflow usestrix/strix/.github/workflows/build-release.yml" in gh_log
|
||||
assert "--deny-self-hosted-runners" in gh_log
|
||||
assert not (tmp_path / "cosign.log").exists()
|
||||
|
||||
|
|
@ -368,9 +366,7 @@ def test_installer_uses_cosign_when_gh_cannot_verify(tmp_path: Path) -> None:
|
|||
assert "(cosign)" in result.stdout
|
||||
cosign_log = (tmp_path / "cosign.log").read_text(encoding="utf-8")
|
||||
assert "--new-bundle-format" in cosign_log
|
||||
assert "--certificate-oidc-issuer https://token.actions.githubusercontent.com" in (
|
||||
cosign_log
|
||||
)
|
||||
assert "--certificate-oidc-issuer https://token.actions.githubusercontent.com" in (cosign_log)
|
||||
assert "build-release.yml" in cosign_log
|
||||
assert "--type slsaprovenance1" in cosign_log
|
||||
assert (home_path / ".strix/bin/strix").exists()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue