From 040b00732a925031511eae265eb80c771f5baa88 Mon Sep 17 00:00:00 2001 From: kjwinfield Date: Thu, 2 Jan 2025 16:19:40 +0000 Subject: [PATCH] fix broken tests --- .../home/dnanexus/tests/test_make_workbook.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/resources/home/dnanexus/tests/test_make_workbook.py b/resources/home/dnanexus/tests/test_make_workbook.py index 60a0995..5d536f5 100644 --- a/resources/home/dnanexus/tests/test_make_workbook.py +++ b/resources/home/dnanexus/tests/test_make_workbook.py @@ -18,7 +18,12 @@ class TestWorkbook(): Tests for excel() class in make_workbook script ''' summary_content = {} - panels = None + panels = { + '486': { + 'rcode': 'R123', + 'panel_name': 'Paediatric disorders' + } + } wgs_data = { "interpretation_request_data": { "json_request": { @@ -63,12 +68,6 @@ def test_get_panels(self): } def test_get_panels_extracts_data_from_input_panel_json(self): - self.panels = { - '486': { - 'rcode': 'R123', - 'panel_name': 'Paediatric disorders' - } - } excel.get_panels(self) assert self.summary_content == { (14, 1): '486', @@ -286,5 +285,5 @@ def test_get_ensp(self): refseq_tsv = ["ENST0000033\tENSP0000044\tENSG00000022", "ENST0000066\tENSP0000088\tENSG00000044"] assert var_info.look_up_id_in_refseq_mane_conversion_file( - refseq_tsv, "ENST0000033", "ENST" + refseq_tsv, "ENST0000033", "ENSP" ) == "ENSP0000044"