diff --git a/tests/test_webservice.py b/tests/test_webservice.py index 5aea300c5fcb0394a5fd3ca5a046f0a9099c334c..a7dac1ad4d51e6f107658cf07a22987bbca39bf7 100644 --- a/tests/test_webservice.py +++ b/tests/test_webservice.py @@ -193,7 +193,8 @@ async def test_get_slurm_nice(fake_process, cycle, num_jobs, expected_result): ['squeue', '-h', '-o', '%.20j', '-p', 'exfel', '--me'], stdout=b'\n'.join( [f'correct_SPB_{i}'.encode('ascii') for i in range(num_jobs)] + - [f'correct_FXE_{i}'.encode('ascii') for i in range(num_jobs*2)])) + [f'correct_FXE_{i}'.encode('ascii') for i in range(num_jobs*2)]), + returncode=0) ret = await get_slurm_nice( 'exfel', 'SPB', cycle, job_penalty=3, commissioning_penalty=5)