File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 13
13
14
14
15
15
class UpdateLookupTableTest (MockedDatarootTestCase ):
16
+ def test_skip_update_lookup_table_task (self ) -> None :
17
+ worker = luigi .worker .Worker ()
18
+ uslt_task = UpdateLookupTableTask (
19
+ reference_genome = ReferenceGenome .GRCh38 ,
20
+ dataset_type = DatasetType .SNV_INDEL ,
21
+ sample_type = SampleType .WGS ,
22
+ callset_path = TEST_VCF ,
23
+ project_guid = 'R0555_seqr_demo' , # a project excluded from the lookup table
24
+ project_remap_path = TEST_REMAP ,
25
+ project_pedigree_path = TEST_PEDIGREE_3 ,
26
+ validate = False ,
27
+ )
28
+ worker .add (uslt_task )
29
+ worker .run ()
30
+ self .assertTrue (uslt_task .output ().exists ())
31
+ self .assertTrue (uslt_task .complete ())
32
+ ht = hl .read_table (uslt_task .output ().path )
33
+ self .assertEqual (
34
+ ht .globals .collect (),
35
+ [
36
+ hl .Struct (
37
+ project_guids = [],
38
+ project_families = {},
39
+ updates = {
40
+ hl .Struct (callset = TEST_VCF , project_guid = 'R0555_seqr_demo' ),
41
+ },
42
+ ),
43
+ ],
44
+ )
45
+ self .assertEqual (
46
+ ht .collect (),
47
+ []
48
+ )
49
+
16
50
def test_update_lookup_table_task (self ) -> None :
17
51
worker = luigi .worker .Worker ()
18
52
uslt_task = UpdateLookupTableTask (
You can’t perform that action at this time.
0 commit comments