Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 1edd592

Browse files
committed
fixed lint
1 parent c20c1af commit 1edd592

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

tests/crypt/test_rsa.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,38 @@
2727

2828
DATA_DIR = os.path.join(os.path.dirname(__file__), "..", "data")
2929

30+
3031
@pytest.fixture
3132
def private_key_bytes():
3233
with open(os.path.join(DATA_DIR, "privatekey.pem"), "rb") as fh:
3334
return fh.read()
3435

36+
3537
@pytest.fixture
3638
def public_key_bytes():
3739
with open(os.path.join(DATA_DIR, "privatekey.pub"), "rb") as fh:
3840
return fh.read()
3941

42+
4043
@pytest.fixture
4144
def cryptography_private_key(private_key_bytes):
4245
return serialization.load_pem_private_key(
4346
private_key_bytes, password=None, backend=backends.default_backend()
4447
)
4548

49+
4650
@pytest.fixture
4751
def rsa_private_key(private_key_bytes):
4852
return rsa_lib.PrivateKey.load_pkcs1(private_key_bytes)
4953

54+
5055
@pytest.fixture
5156
def cryptography_public_key(public_key_bytes):
5257
return serialization.load_pem_public_key(
5358
public_key_bytes, backend=backends.default_backend()
5459
)
5560

61+
5662
@pytest.fixture
5763
def rsa_public_key(public_key_bytes):
5864
return rsa_lib.PublicKey.load_pkcs1(public_key_bytes)
@@ -135,7 +141,9 @@ def test_sign_delegates(self, rsa_private_key):
135141
mock_sign.assert_called_once_with(b"message")
136142

137143
@mock.patch("google.auth.crypt.rsa._cryptography_rsa")
138-
def test_from_string_delegates_to_cryptography(self, mock_crypto, private_key_bytes):
144+
def test_from_string_delegates_to_cryptography(
145+
self, mock_crypto, private_key_bytes
146+
):
139147
expected_signer = mock.Mock()
140148
mock_crypto.RSASigner.from_string.return_value = expected_signer
141149

0 commit comments

Comments
 (0)