Skip to content

Commit

Permalink
remove slow test
Browse files Browse the repository at this point in the history
  • Loading branch information
tcezard committed Oct 7, 2021
1 parent 3885481 commit 48e3531
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions tests/test_vep_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,20 @@ def test_get_vep_versions_from_ensembl_not_found(self):
self.assertEqual(vep_version, None)
self.assertEqual(cache_version, None)

def test_get_vep_versions_from_ensembl_older_version(self):
# Older version of assembly using NCBI assembly code isn't found successfully
# TODO this takes about 20 minutes to finish when I test locally
vep_version, cache_version = get_vep_and_vep_cache_version_from_ensembl('eva_pfalciparum_asm276v1', 36329,
'GCA_000002765')
self.assertEqual(vep_version, None)
self.assertEqual(cache_version, None)

# If we magically knew the Ensembl assembly code was EPr1 we could find it!
vep_version, cache_version = get_vep_and_vep_cache_version_from_ensembl('eva_pfalciparum_EPr1', 36329,
'GCA_000002765')
self.assertEqual(vep_version, 44 + 53)
self.assertEqual(cache_version, 44)
# DISABLED because too slow and make deployment difficult.
# def test_get_vep_versions_from_ensembl_older_version(self):
# # Older version of assembly using NCBI assembly code isn't found successfully
# # TODO this takes about 20 minutes to finish when I test locally
# vep_version, cache_version = get_vep_and_vep_cache_version_from_ensembl('eva_pfalciparum_asm276v1', 36329,
# 'GCA_000002765')
# self.assertEqual(vep_version, None)
# self.assertEqual(cache_version, None)
#
# # If we magically knew the Ensembl assembly code was EPr1 we could find it!
# vep_version, cache_version = get_vep_and_vep_cache_version_from_ensembl('eva_pfalciparum_EPr1', 36329,
# 'GCA_000002765')
# self.assertEqual(vep_version, 44 + 53)
# self.assertEqual(cache_version, 44)

def test_get_vep_versions(self):
with patch('eva_submission.vep_utils.get_vep_and_vep_cache_version_from_db') as m_get_db, \
Expand Down

0 comments on commit 48e3531

Please sign in to comment.