Skip to content

Commit 4cc8dc7

Browse files
committed
hope this works
1 parent 0f8bcb5 commit 4cc8dc7

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

v03_pipeline/lib/tasks/update_lookup_table_test.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,40 @@
1313

1414

1515
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+
1650
def test_update_lookup_table_task(self) -> None:
1751
worker = luigi.worker.Worker()
1852
uslt_task = UpdateLookupTableTask(

0 commit comments

Comments
 (0)