Skip to content

Commit 567e702

Browse files
committed
black formating
1 parent 1cc57fd commit 567e702

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/integ/conftest.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
import time
77
import uuid
88
from contextlib import contextmanager
9-
from cryptography.hazmat.primitives import serialization
109
from logging import getLogger
1110
from typing import Any, Callable, ContextManager, Generator
1211

1312
import pytest
1413
import serialization
14+
from cryptography.hazmat.primitives import serialization
1515

1616
import snowflake.connector
1717
from snowflake.connector.compat import IS_WINDOWS
@@ -196,10 +196,7 @@ def get_db_parameters(connection_name: str = "default") -> dict[str, Any]:
196196

197197
def get_private_key(private_key_file: str) -> bytes:
198198
with open(private_key_file, "rb") as key_file:
199-
private_key = serialization.load_pem_private_key(
200-
key_file.read(),
201-
password=None
202-
)
199+
private_key = serialization.load_pem_private_key(key_file.read(), password=None)
203200
return private_key.private_bytes(
204201
encoding=serialization.Encoding.DER,
205202
format=serialization.PrivateFormat.PKCS8,

0 commit comments

Comments
 (0)