@@ -159,41 +159,3 @@ def test_batch_arguments_type_set_queue(scheduler):
159159 bs = BatchSettings (batch_scheduler = scheduler , env_vars = {"ENV" : "VAR" })
160160 with pytest .raises (TypeError , match = "queue argument was not of type str" ):
161161 bs .batch_args .set_queue (27 )
162-
163-
164- @pytest .mark .parametrize (
165- "scheduler" ,
166- [
167- pytest .param ("slurm" , id = "slurm scheduler" ),
168- pytest .param ("lsf" , id = "bsub scheduler" ),
169- pytest .param ("pbs" , id = "qsub scheduler" ),
170- ],
171- )
172- def test_batch_arguments_type_set_hostlist (scheduler ):
173- bs = BatchSettings (batch_scheduler = scheduler , env_vars = {"ENV" : "VAR" })
174- with pytest .raises (TypeError , match = "host_list argument must be a list of strings" ):
175- bs .batch_args .set_hostlist ([25 , 37 ])
176-
177-
178- def test_batch_arguments_type_set_ncpus ():
179- bs = BatchSettings (batch_scheduler = "pbs" , env_vars = {"ENV" : "VAR" })
180- with pytest .raises (TypeError , match = "num_cpus argument was not of type int" ):
181- bs .batch_args .set_ncpus ("invalid" )
182-
183-
184- def test_batch_arguments_type_set_smts ():
185- bs = BatchSettings (batch_scheduler = "lsf" , env_vars = {"ENV" : "VAR" })
186- with pytest .raises (TypeError , match = "smts argument was not of type int" ):
187- bs .batch_args .set_smts ("invalid" )
188-
189-
190- def test_batch_arguments_type_set_project ():
191- bs = BatchSettings (batch_scheduler = "lsf" , env_vars = {"ENV" : "VAR" })
192- with pytest .raises (TypeError , match = "project argument was not of type str" ):
193- bs .batch_args .set_project (27 )
194-
195-
196- def test_batch_arguments_type_set_tasks ():
197- bs = BatchSettings (batch_scheduler = "lsf" , env_vars = {"ENV" : "VAR" })
198- with pytest .raises (TypeError , match = "tasks argument was not of type int" ):
199- bs .batch_args .set_tasks ("invalid" )
0 commit comments