Skip to content

Commit 2f6f5af

Browse files
committed
Fix tests
1 parent 53f8a33 commit 2f6f5af

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

tests/integration/test_logging_flush.py renamed to tests/integration/test_connection_close.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"""This module includes integration test for the log flushing."""
2-
31
# Copyright (c) 2021 http://reportportal.io .
42
# Licensed under the Apache License, Version 2.0 (the "License");
53
# you may not use this file except in compliance with the License.
@@ -20,16 +18,12 @@
2018

2119

2220
@mock.patch(REPORT_PORTAL_SERVICE)
23-
def test_logging_flushing(mock_client_init):
24-
"""Verify log buffer flushes after test finish.
25-
26-
:param mock_client_init: Pytest fixture
27-
"""
21+
def test_connection_close(mock_client_init):
2822
mock_client = mock_client_init.return_value
2923

3024
result = utils.run_tests_with_client(
3125
mock_client, ['examples/test_rp_logging.py'])
3226

3327
assert int(result) == 0, 'Exit code should be 0 (no errors)'
34-
assert mock_client.terminate.call_count == 1, \
35-
'"terminate" method was not called at the end of the test'
28+
assert mock_client.close.call_count == 1, \
29+
'"close" method was not called at the end of the test'

tests/unit/test_plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ def test_pytest_addoption_adds_correct_ini_file_arguments():
366366
'retries',
367367
'rp_api_retries',
368368
'rp_skip_connection_test',
369-
'rp_launch_timeout'
369+
'rp_launch_timeout',
370+
'rp_client_type'
370371
)
371372
mock_parser = mock.MagicMock(spec=Parser)
372373

tests/unit/test_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This modules includes unit tests for the service.py module."""
1+
"""This module includes unit tests for the service.py module."""
22

33
from delayed_assert import expect, assert_expectations
44

0 commit comments

Comments
 (0)