Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaMaul committed Jun 25, 2024
1 parent e5686a1 commit fe9d005
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions test/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ def test_sign_command(tmp_path: Path) -> None:
copied_artifact_attestation = Path(f"{copied_artifact}.publish.attestation")
assert copied_artifact_attestation.is_file()

attestation = Attestation.model_validate_json(
copied_artifact_attestation.read_text()
)
attestation = Attestation.model_validate_json(copied_artifact_attestation.read_text())
assert attestation.version


Expand Down Expand Up @@ -147,9 +145,7 @@ def return_invalid_token() -> str:
assert "Failed to detect identity" in caplog.text


def test_inspect_command(
caplog: pytest.LogCaptureFixture, monkeypatch: pytest.MonkeyPatch
) -> None:
def test_inspect_command(caplog: pytest.LogCaptureFixture, monkeypatch: pytest.MonkeyPatch) -> None:
# Happy path
run_main_with_command(["inspect", attestation_path.as_posix()])
assert attestation_path.as_posix() in caplog.text
Expand Down Expand Up @@ -179,9 +175,7 @@ def test_inspect_command(
assert "not_a_file.txt is not a file." in caplog.text


def test_verify_command(
caplog: pytest.LogCaptureFixture, monkeypatch: pytest.MonkeyPatch
) -> None:
def test_verify_command(caplog: pytest.LogCaptureFixture, monkeypatch: pytest.MonkeyPatch) -> None:
# Happy path
run_main_with_command(
[
Expand Down

0 comments on commit fe9d005

Please sign in to comment.