Skip to content

Commit 06341fe

Browse files
committed
Update the tests
1 parent 2336c3b commit 06341fe

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

tests/services/test_class2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def test_class2d_service_complete_batch(mock_subprocess, offline_transport, tmp_
330330

331331
# Check the expected command was run
332332
class2d_command = [
333-
"srun",
333+
"mpirun",
334334
"-n",
335335
"5",
336336
"relion_refine_mpi",

tests/services/test_class3d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def test_class3d_service_has_initial_model(
103103
# Check the expected 3D classifcation command was run
104104
assert mock_subprocess.call_count == 4
105105
class3d_command = [
106-
"srun",
106+
"mpirun",
107107
"-n",
108108
"5",
109109
"relion_refine_mpi",
@@ -282,6 +282,7 @@ def test_class3d_service_rerun(
282282
"do_initial_model": False,
283283
"initial_model_file": f"{tmp_path}/initial_model.mrc",
284284
"mask_diameter": "190.0",
285+
"mpi_run_command": "srun -n 5",
285286
"particle_diameter": "180",
286287
"particles_file": f"{tmp_path}/Select/job013/particles_100000.star",
287288
"picker_id": "6",

tests/wrappers/test_class2d_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def test_class2d_wrapper_complete_batch(
352352

353353
# Check the expected command was run
354354
class2d_command = [
355-
"srun",
355+
"mpirun",
356356
"-n",
357357
"5",
358358
"relion_refine_mpi",

tests/wrappers/test_class3d_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def test_class3d_wrapper_has_initial_model(
499499
# Check the expected 3D classifcation command was run
500500
assert mock_subprocess.call_count == 4
501501
class3d_command = [
502-
"srun",
502+
"mpirun",
503503
"-n",
504504
"5",
505505
"relion_refine_mpi",

tests/wrappers/test_refine3d_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def test_refine3d_wrapper_no_mask(
350350
)
351351

352352
refine3d_command = [
353-
"srun",
353+
"mpirun",
354354
"-n",
355355
"5",
356356
"relion_refine_mpi",

0 commit comments

Comments
 (0)