Skip to content

Commit

Permalink
Fixed test_create_url in TestVariantUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDuraisingh committed Aug 7, 2023
1 parent c4f2caa commit 64fc917
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_variant_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def mock_key_manager(self):
yield

def test_variant_utils_basic(self):
""" Tests the instantiation of a VariantUtils object """
"""Tests the instantiation of a VariantUtils object """
with self.mock_key_manager():
vu = VariantUtils(env_name='cgap-dummy')
assert isinstance(vu, VariantUtils)
Expand Down Expand Up @@ -115,8 +115,8 @@ def test_create_url(self, mock_create_dict_from_json_file, pos):
'OTHER_GENE': {pos: 10}
}
result = vu.create_url(gene=mock_gene)
expected_result = vu.SEARCH_RARE_VARIANTS_BY_GENE + mock_gene + ('&variant.POS.from={pos}\
&variant.POS.to={pos}&sort=-DP')
expected_result = vu.SEARCH_RARE_VARIANTS_BY_GENE + mock_gene + (f'&variant.POS.from={pos}'
f'&variant.POS.to={pos}&sort=-DP')
assert result == expected_result
mock_create_dict_from_json_file.assert_called_once_with('10+sorted_msa_genes_and_mutations.json')

Expand Down

0 comments on commit 64fc917

Please sign in to comment.