File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616from unittest import mock
1717
18- from delayed_assert import assert_expectations , expect
19-
2018from tests import REPORT_PORTAL_SERVICE
2119from tests .helpers import utils
2220
@@ -32,12 +30,10 @@ def test_empty_run(mock_client_init):
3230 assert int (result ) == 5 , "Exit code should be 5 (no tests)"
3331
3432 mock_client = mock_client_init .return_value
35- expect (mock_client .start_launch .call_count == 1 , '"start_launch" method was not called' )
36- expect (mock_client .finish_launch .call_count == 1 , '"finish_launch" method was not called' )
37- assert_expectations ()
33+ assert mock_client .start_launch .call_count == 1 , '"start_launch" method was not called'
34+ assert mock_client .finish_launch .call_count == 1 , '"finish_launch" method was not called'
3835
3936 finish_args = mock_client .finish_launch .call_args_list
40- expect ( "status" not in finish_args [0 ][1 ], "Launch status should not be defined" )
37+ assert "status" not in finish_args [0 ][1 ], "Launch status should not be defined"
4138 launch_end_time = finish_args [0 ][1 ]["end_time" ]
42- expect (launch_end_time is not None and int (launch_end_time ) > 0 , "Launch end time is empty" )
43- assert_expectations ()
39+ assert launch_end_time is not None and int (launch_end_time ) > 0 , "Launch end time is empty"
You can’t perform that action at this time.
0 commit comments