File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 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.
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'
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1- """This modules includes unit tests for the service.py module."""
1+ """This module includes unit tests for the service.py module."""
22
33from delayed_assert import expect , assert_expectations
44
You can’t perform that action at this time.
0 commit comments