From 48e3531056a88b3938c35ad376450e8370e4c32d Mon Sep 17 00:00:00 2001 From: Timothee Cezard Date: Thu, 7 Oct 2021 15:00:20 +0100 Subject: [PATCH] remove slow test --- tests/test_vep_utils.py | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/tests/test_vep_utils.py b/tests/test_vep_utils.py index a5f013af..f1ca8cc6 100644 --- a/tests/test_vep_utils.py +++ b/tests/test_vep_utils.py @@ -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, \