From 23a04dc39b3f4b9241bd36f70aa3a52a6d1682db Mon Sep 17 00:00:00 2001 From: Philipp Schmidt <philipp.schmidt@xfel.eu> Date: Mon, 4 Apr 2022 17:27:46 +0200 Subject: [PATCH] Try it with explicit returncode --- tests/test_webservice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_webservice.py b/tests/test_webservice.py index 5aea300c5..a7dac1ad4 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) -- GitLab