File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,7 @@ def get_output_file_for_example(example_file: Path):
56
56
# self.assertFileContentsEqual(expected_result_output_file_path, result.output_file_path)
57
57
58
58
def test_print_output_to_console (self ):
59
- example_files = self ._list_test_files_dir (test_files_dir = './examples' )
60
- assert len (example_files ) > 0 # test integrity check - no files means something is misconfigured
61
-
62
- def get_stdout_from_running (print_output_to_console : bool ) -> str :
59
+ def get_stdout_from_running (print_output_to_console : bool | int ) -> str :
63
60
params = {
64
61
'Reservoir Temperature' : 250.0 ,
65
62
'Rejection Temperature' : 60.0 ,
@@ -79,6 +76,8 @@ def get_stdout_from_running(print_output_to_console: bool) -> str:
79
76
80
77
self .assertIn ('***HIP CASE REPORT***' , get_stdout_from_running (True ))
81
78
self .assertNotIn ('***HIP CASE REPORT***' , get_stdout_from_running (False ))
79
+ self .assertIn ('***HIP CASE REPORT***' , get_stdout_from_running (1 ))
80
+ self .assertNotIn ('***HIP CASE REPORT***' , get_stdout_from_running (0 ))
82
81
83
82
def test_result_parsing_1 (self ):
84
83
result = HipRaResult (self ._get_test_file_path ('hip-result_example-1.out' ))
You can’t perform that action at this time.
0 commit comments