Skip to content

Commit

Permalink
Merge pull request #2 from ipetrushchak/improve-unit-tests-for-client
Browse files Browse the repository at this point in the history
Improve unit tests in elitea_test/test_client.py
  • Loading branch information
ipetrushchak authored Sep 30, 2024
2 parents 153dee1 + f4afca7 commit fe41079
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions elitea_test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,33 @@ def test_close(rp_client):
with patch.object(rp_client, 'close') as mock_close:
rp_client.close()
mock_close.assert_called_once()

def test_is_skipped_an_issue(rp_client):
assert rp_client.is_skipped_an_issue is True

def test_verify_ssl(rp_client):
assert rp_client.verify_ssl is True

def test_retries(rp_client):
assert rp_client.retries == 3

def test_max_pool_size(rp_client):
assert rp_client.max_pool_size == 50

def test_http_timeout(rp_client):
assert rp_client.http_timeout == (10, 10)

def test_log_batch_payload_size(rp_client):
assert rp_client.log_batch_payload_size == 1024

def test_mode(rp_client):
assert rp_client.mode == "DEFAULT"

def test_launch_uuid_print(rp_client):
assert rp_client.launch_uuid_print is False

def test_print_output(rp_client):
assert rp_client.print_output == OutputType.STDOUT

def test_log_batch_size(rp_client):
assert rp_client.log_batch_size == 20

0 comments on commit fe41079

Please sign in to comment.