def test_sign_artifact_called(self, mock_repo: Mock) -> None: signer = Signer() signer.generate_signature_and_verify = MagicMock() # type: ignore signer.sign_artifact("the-jar.zip", Path("/path"), ".sig") signer.generate_signature_and_verify.assert_called_with("the-jar.zip", Path("/path"), ".sig")
def test_sign_artifact_called(self, mock_repo): signer = Signer() signer.generate_signature_and_verify = MagicMock() signer.sign_artifact("the-jar.zip", "/path", ".sig") signer.generate_signature_and_verify.assert_called_with( "the-jar.zip", "/path", ".sig")