Skip to content

Commit

Permalink
test for setting log level
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Jelen <[email protected]>
  • Loading branch information
Jakuje committed Jun 21, 2024
1 parent 689d250 commit 05c0bd4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/unit/session_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

"""Tests suite for session."""

import logging

import pytest

from pylibsshext.errors import LibsshSessionException
Expand All @@ -19,3 +21,11 @@ def test_session_connection_refused(free_port_num):
ssh_session = Session()
with pytest.raises(LibsshSessionException, match=error_msg):
ssh_session.connect(host='127.0.0.1', port=free_port_num)


def test_session_log_level():
"""Test setting the log level."""
ssh_session = Session()
assert ssh_session

ssh_session.set_log_level(logging.DEBUG)

0 comments on commit 05c0bd4

Please sign in to comment.