@@ -375,18 +375,13 @@ def test_loq_verify_checks_m4():
375
375
additional_values = {"included_trans_as_scatter" : True , "cycle_string" : "cycle_24_4" },
376
376
additional_requests = [],
377
377
)
378
- with (
379
- # mock.patch("rundetection.rules.sans_rules.create_list_of_files", return_value=[SansFileData("", "", "")]),
380
- mock .patch (
381
- "rundetection.rules.sans_rules.strip_excess_files" ,
382
- return_value = [
383
- SansFileData (title = "{scatter}" , type = "TRANS" , run_number = "1" ),
384
- SansFileData (title = "{background}" , type = "SANS/TRANS" , run_number = "2" ),
385
- SansFileData (title = "{background}" , type = "TRANS" , run_number = "3" ),
386
- SansFileData (title = "{direct}" , type = "SANS/TRANS" , run_number = "4" ),
387
- ],
388
- ),
389
- ):
378
+ with mock .patch ("rundetection.rules.sans_rules.strip_excess_files" ,
379
+ return_value = [
380
+ SansFileData (title = "{scatter}" , type = "TRANS" , run_number = "1" ),
381
+ SansFileData (title = "{background}" , type = "SANS/TRANS" , run_number = "2" ),
382
+ SansFileData (title = "{background}" , type = "TRANS" , run_number = "3" ),
383
+ SansFileData (title = "{direct}" , type = "SANS/TRANS" , run_number = "4" ),
384
+ ]):
390
385
loq_find_files = SansFindFiles (value = True )
391
386
loq_find_files .verify (job_request )
392
387
assert job_request .will_reduce is True
0 commit comments