Skip to content

Commit bcf45e1

Browse files
committed
fix pytest
1 parent 429f44a commit bcf45e1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/models/test_snakemake_models.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,9 @@ def test_get_snakemake_cluster_options(
198198

199199
# THEN the expected format should be returned
200200
assert snakemake_cluster_options == (
201-
f"--slurm-logdir {session_tmp_path} --profile {reference_file.as_posix()} --default-resources "
202-
f"slurm_qos={QOS.HIGH} runtime=120 mem_mb=4000 slurm_partition={Partition.CORE} slurm_account={ClusterAccount.DEVELOPMENT} "
201+
f"--slurm-logdir {session_tmp_path} --profile {reference_file.as_posix()} "
202+
f'--default-resources slurm_extra="--qos={QOS.HIGH}" runtime=120 mem_mb=4000 '
203+
f"slurm_partition={Partition.CORE} slurm_account={ClusterAccount.DEVELOPMENT} "
203204
"--slurm-keep-successful-logs"
204205
)
205206

@@ -226,6 +227,6 @@ def test_get_snakemake_command(
226227
f"--use-singularity --singularity-args '--cleanenv --bind {session_tmp_path.as_posix()}:/' --quiet "
227228
f"--slurm-logdir {session_tmp_path} "
228229
f"--profile {reference_file.as_posix()} "
229-
f"--default-resources slurm_qos={QOS.HIGH} runtime=120 mem_mb=4000 slurm_partition={Partition.CORE} slurm_account={ClusterAccount.DEVELOPMENT} --slurm-keep-successful-logs "
230+
f'--default-resources slurm_extra="--qos={QOS.HIGH}" runtime=120 mem_mb=4000 slurm_partition={Partition.CORE} slurm_account={ClusterAccount.DEVELOPMENT} --slurm-keep-successful-logs '
230231
"--cores 36"
231232
)

0 commit comments

Comments
 (0)