Skip to content

Commit

Permalink
Merge pull request #110 from zhx828/master
Browse files Browse the repository at this point in the history
Fix test paramter issues when oncokb token is available
  • Loading branch information
Hongxin authored Oct 30, 2020
2 parents 9247901 + a769f8d commit cb36a09
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test_Annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_check_protein_change():
ProteinChangeQuery('BRAF', 'V600E', 'Colorectal Cancer')
]

annotations = pull_protein_change_info(queries)
annotations = pull_protein_change_info(queries, False)
assert len(annotations) == 1

annotation = annotations[0]
Expand All @@ -48,7 +48,7 @@ def test_reference_genome():
GenomicChangeQuery('7', '140753336', '140753336', 'A', 'T', 'LUAD', ReferenceGenome.GRCH38)
]

annotations = pull_protein_change_info(queries)
annotations = pull_protein_change_info(queries, False)
assert len(annotations) == 2

annotation37 = annotations[0]
Expand All @@ -60,7 +60,7 @@ def test_reference_genome():
ProteinChangeQuery('MYD88', 'M219T', 'Ovarian Cancer', ReferenceGenome.GRCH38)
]

annotations = pull_protein_change_info(queries)
annotations = pull_protein_change_info(queries, False)
assert len(annotations) == 2

annotation37 = annotations[0]
Expand All @@ -74,7 +74,7 @@ def test_fake_gene_protein_change():
ProteinChangeQuery('test1', 'V600E', 'Ovarian Cancer')
]

annotations = pull_protein_change_info(queries)
annotations = pull_protein_change_info(queries, False)
fake_gene_one_query_suite(annotations)


Expand All @@ -87,7 +87,7 @@ def test_check_atypical_alts():
ProteinChangeQuery('TERT', 'Promoter Mutation', 'Bladder Cancer', None, '5\'Flank')
]

annotations = pull_protein_change_info(queries)
annotations = pull_protein_change_info(queries, False)
assert len(annotations) == 4

annotation = annotations[0]
Expand Down Expand Up @@ -121,7 +121,7 @@ def test_check_hgvsg():
HGVSgQuery('5:g.1295228G>A', 'LUAD'),
]

annotations = pull_hgvsg_info(queries)
annotations = pull_hgvsg_info(queries, False)
assert len(annotations) == 3

annotation = annotations[0]
Expand Down Expand Up @@ -150,7 +150,7 @@ def test_check_genomic_change():
GenomicChangeQuery('5', '1295228', '1295228', 'G', 'A', 'LUAD'),
]

annotations = pull_genomic_change_info(queries)
annotations = pull_genomic_change_info(queries, False)
assert len(annotations) == 3

annotation = annotations[0]
Expand Down

0 comments on commit cb36a09

Please sign in to comment.