Skip to content
Snippets Groups Projects
Commit b8650a75 authored by Cyril Danilevski's avatar Cyril Danilevski :scooter: Committed by Karim Ahmed
Browse files

Fix fstring formatting

parent 4df50b51
No related branches found
No related tags found
1 merge request!725[webservice] Select partition based on beamtime dates
......@@ -268,8 +268,8 @@ async def test_run_action(mode, cmd, retcode, expected, monkeypatch):
(42, 'correct', 'A', [INVALID_BEAMTIME], 'exfel'), # active but not in beamtime
(42, 'correct', 'A', [VALID_BEAMTIME], 'upex-middle'), # active
('42', 'dark', 'R', [VALID_BEAMTIME, {}], 'upex-high'), # active
(42, 'correct', 'A', [], 'exfel'), # active, no beatime?
(42, 'correct', 'A', None, 'exfel'), # active, no beatime?
(42, 'correct', 'A', [], 'exfel'), # active, no beamtime?
(42, 'correct', 'A', None, 'exfel'), # active, no beamtime?
],
)
async def test_get_slurm_partition(
......
......@@ -606,11 +606,12 @@ async def get_slurm_partition(
partition = 'exfel'
logging.debug(
f"{run_age.days} > {max_age_days}, set partition "
"to {partition}"
f"to {partition}"
)
logging.debug(
f"Using {partition} for {proposal_number} because {status_beamtime} and active now: {active_now}"
f"Using {partition} for {proposal_number} because {status_beamtime} "
f"and active now: {active_now}"
)
return partition
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment