Skip to content

Commit c1b506c

Browse files
committed
fix: remove mocked assertions; remove coverage
1 parent 48ed5f9 commit c1b506c

File tree

2 files changed

+322
-397
lines changed

2 files changed

+322
-397
lines changed

ibind/oauth/oauth1a.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
from typing import Optional, TYPE_CHECKING
88
from urllib import parse
99

10-
# TODO: Remove bandit ignore once we have a new Crypto implementation
11-
# Check repo wiki for more details on Security consideration
1210
from Crypto.Cipher import PKCS1_v1_5 as PKCS1_v1_5_Cipher # nosec
1311
from Crypto.Hash import SHA256, HMAC, SHA1 # nosec
1412
from Crypto.PublicKey import RSA # nosec
@@ -20,7 +18,6 @@
2018
if TYPE_CHECKING: # pragma: no cover
2119
from ibind import IbkrClient
2220

23-
2421
_STRING_ENCODING = 'utf-8'
2522
_INT_BASE = 16
2623
_KEY_VALUE_SEPARATOR = '='
@@ -229,7 +226,7 @@ def generate_request_timestamp() -> str:
229226
return str(int(time.time()))
230227

231228

232-
def read_private_key(private_key_fp: str) -> RSA.RsaKey:
229+
def read_private_key(private_key_fp: str) -> RSA.RsaKey: # pragma: no cover
233230
"""
234231
Reads the private key from the file path provided. The key is used to sign the request and decrypt the access token secret.
235232
"""

0 commit comments

Comments
 (0)