We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a81e1e2 commit 8cecb7fCopy full SHA for 8cecb7f
tests/unit/session_test.py
@@ -2,6 +2,7 @@
2
3
"""Tests suite for session."""
4
5
+import logging
6
import pytest
7
8
from pylibsshext.errors import LibsshSessionException
@@ -19,3 +20,10 @@ def test_session_connection_refused(free_port_num):
19
20
ssh_session = Session()
21
with pytest.raises(LibsshSessionException, match=error_msg):
22
ssh_session.connect(host='127.0.0.1', port=free_port_num)
23
+
24
+def test_session_log_level():
25
+ """Test setting the log level"""
26
+ ssh_session = Session()
27
+ assert ssh_session
28
29
+ ssh_session.set_log_level(logging.DEBUG)
0 commit comments