File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import shutil
2
+ from unittest .mock import Mock , patch
2
3
3
4
import hail as hl
4
5
import luigi .worker
@@ -83,7 +84,6 @@ def test_write_remapped_and_subsetted_callset_task(
83
84
project_remap_path = TEST_REMAP ,
84
85
project_pedigree_path = TEST_PEDIGREE_3 ,
85
86
skip_validation = True ,
86
- skip_check_sex_and_relatedness = False ,
87
87
)
88
88
worker .add (wrsc_task )
89
89
worker .run ()
@@ -104,9 +104,12 @@ def test_write_remapped_and_subsetted_callset_task(
104
104
],
105
105
)
106
106
107
+ @patch ('v03_pipeline.lib.tasks.write_remapped_and_subsetted_callset.Env' )
107
108
def test_write_remapped_and_subsetted_callset_task_failed_sex_check_family (
108
109
self ,
110
+ mock_env : Mock ,
109
111
) -> None :
112
+ mock_env .CHECK_SEX_AND_RELATEDNESS = True
110
113
worker = luigi .worker .Worker ()
111
114
wrsc_task = WriteRemappedAndSubsettedCallsetTask (
112
115
reference_genome = ReferenceGenome .GRCh38 ,
@@ -117,7 +120,6 @@ def test_write_remapped_and_subsetted_callset_task_failed_sex_check_family(
117
120
project_remap_path = TEST_REMAP ,
118
121
project_pedigree_path = TEST_PEDIGREE_4 ,
119
122
skip_validation = True ,
120
- skip_check_sex_and_relatedness = False ,
121
123
)
122
124
worker .add (wrsc_task )
123
125
worker .run ()
You can’t perform that action at this time.
0 commit comments