@@ -34,7 +34,6 @@ def temp_key_files():
3434
3535 if os .path .exists (server_key_file ):
3636 # grab the key from the file instead of writing the default key
37-
3837 # to the file.
3938 with open (server_key_file , "r" ) as f :
4039 server_key = f .read ().strip ()
@@ -54,7 +53,6 @@ def temp_key_files():
5453 "client_priv" : client_priv_key_file ,
5554 "server_key" : server_key ,
5655 "temp_dir" : temp_dir ,
57-
5856 }
5957
6058
@@ -75,7 +73,6 @@ def test_successful_connection_with_key_files(self, temp_key_files):
7573 assert api .keysLoaded () is True
7674 assert api .keysValid () is True
7775
78-
7976 def test_successful_connection_with_direct_keys (self , temp_key_files ):
8077 """Test successful connection using keys directly."""
8178 api = MessageLib .API (
@@ -90,7 +87,6 @@ def test_successful_connection_with_direct_keys(self, temp_key_files):
9087 assert api .keysLoaded () is True
9188 assert api .keysValid () is True
9289
93-
9490 def test_anonymous_connection (self , temp_key_files ):
9591 """Test anonymous connection without client keys."""
9692 api = MessageLib .API (
@@ -126,7 +122,6 @@ def test_missing_server_host_raises_exception(self, temp_key_files):
126122 server_pub_key = temp_key_files ["server_key" ],
127123 )
128124
129-
130125 def test_missing_server_port_raises_exception (self , temp_key_files ):
131126 """Test that missing server port raises exception."""
132127 with pytest .raises (Exception , match = "Server port is not defined" ):
@@ -135,7 +130,6 @@ def test_missing_server_port_raises_exception(self, temp_key_files):
135130 server_pub_key = temp_key_files ["server_key" ],
136131 )
137132
138-
139133 def test_missing_server_key_raises_exception (self ):
140134 """Test that missing server key raises exception."""
141135 with pytest .raises (Exception , match = "Server public key or key file is not defined" ):
@@ -182,7 +176,6 @@ def test_malformed_client_keys_generates_new_keys(self, temp_key_files):
182176 client_priv_key_file = bad_priv_key_file ,
183177 )
184178
185-
186179 assert api ._conn is not None
187180 assert api .keysLoaded () is True
188181 assert api .keysValid () is False # Keys were invalid
@@ -225,7 +218,6 @@ def test_manual_auth_by_password_failure(self, temp_key_files):
225218 with pytest .raises (Exception , match = "Password authentication failed" ):
226219 api .manualAuthByPassword ("invalid_user" , "wrong_password" )
227220
228-
229221 def test_manual_auth_by_token_success (self , temp_key_files ):
230222 """Test successful manual authentication by token."""
231223 api = MessageLib .API (
@@ -242,7 +234,6 @@ def test_manual_auth_by_token_success(self, temp_key_files):
242234 assert auth_status is True
243235 assert uid is not None
244236
245-
246237 def test_manual_auth_by_token_failure (self , temp_key_files ):
247238 """Test failed manual authentication by token."""
248239 api = MessageLib .API (
0 commit comments