File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
binding/python/tests/crypto Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 4
4
from cryptography .hazmat .primitives .asymmetric import ed25519
5
5
from cryptography .hazmat .primitives import serialization
6
6
7
- from synlink .crypto .io import load_open_ssh_private_key
8
- from synlink .crypto .ed25519 import PrivateKey
7
+ from synlink .crypto .io import load_ssh_private_key
9
8
10
9
11
10
@@ -54,7 +53,7 @@ def invalid_file_buffer() -> tempfile._TemporaryFileWrapper:
54
53
def test_io_read_ssh_file (file_buffer : tempfile ._TemporaryFileWrapper ):
55
54
try :
56
55
_ = file_buffer
57
- _keypair = load_open_ssh_private_key (
56
+ _keypair = load_ssh_private_key (
58
57
_ .name ,
59
58
password = "hello-world"
60
59
)
@@ -68,7 +67,7 @@ def test_io_invalid_read_ssh_file(invalid_file_buffer : tempfile._TemporaryFileW
68
67
_ = invalid_file_buffer
69
68
70
69
with pytest .raises (Exception ):
71
- _keypair = load_open_ssh_private_key (
70
+ _keypair = load_ssh_private_key (
72
71
_ .name ,
73
72
password = "hello-world"
74
73
)
@@ -80,7 +79,7 @@ def test_io_invalid_key_read_ssh_file(file_buffer : tempfile._TemporaryFileWrapp
80
79
_ = file_buffer
81
80
82
81
with pytest .raises (Exception ):
83
- _keypair = load_open_ssh_private_key (
82
+ _keypair = load_ssh_private_key (
84
83
_ .name ,
85
84
password = "hello"
86
85
)
You can’t perform that action at this time.
0 commit comments