diff --git a/tests/data/AL449423.14.gb.bz2 b/tests/data/AL449423.14.gb.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..80c8c04964f5cc0379f73c4c51029931087f15ad Binary files /dev/null and b/tests/data/AL449423.14.gb.bz2 differ diff --git a/tests/test_services_soap.py b/tests/test_services_soap.py index efe58c119ea081d6dd2ebb2718da7c049b1698d0..5225b7c13cec691e2614205b493fd2379ce42c89 100644 --- a/tests/test_services_soap.py +++ b/tests/test_services_soap.py @@ -19,7 +19,7 @@ from mutalyzer import Db from mutalyzer.output import Output from mutalyzer.services.soap import application from mutalyzer.sync import CacheSync -from mutalyzer.util import slow +from mutalyzer.util import skip, slow import utils @@ -206,18 +206,14 @@ class TestServicesSoap(): Running getTranscriptsAndInfo with a valid genomic reference should give a list of TranscriptInfo objects. """ - r = self._call('getTranscriptsAndInfo', 'AL449423.14') + r = self._call('getTranscriptsAndInfo', 'AF230870.1') assert_equal(type(r.TranscriptInfo), list) names = [t.name for t in r.TranscriptInfo] - for t in ['CDKN2B_v002', - 'CDKN2B_v001', - 'MTAP_v005', - 'CDKN2A_v008', - 'CDKN2A_v007', - 'C9orf53_v001', - 'CDKN2A_v001']: + for t in ['mtmC2_v001', + 'mtmB2_v001']: assert t in names + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_gettranscriptsandinfo_restricted_valid(self): """ Running getTranscriptsAndInfo with a valid genomic reference and a @@ -541,6 +537,7 @@ class TestServicesSoap(): assert_equal(t.gCDSStop, 21141) assert_equal(t.chromCDSStop, 48262863) + @skip # Todo: AL449423.14 no longer contains gene annotations. @slow def test_batchjob(self): """ diff --git a/tests/test_variantchecker.py b/tests/test_variantchecker.py index 138550f05722493157d1c5167f2c79864ac9e13a..e36de26a85dca6614e993f3c789480004f1f6502 100644 --- a/tests/test_variantchecker.py +++ b/tests/test_variantchecker.py @@ -10,6 +10,7 @@ from mutalyzer.output import Output from mutalyzer.Db import Cache from mutalyzer.Retriever import GenBankRetriever from mutalyzer.variantchecker import check_variant +from mutalyzer.util import slow, skip import utils @@ -47,6 +48,7 @@ class TestVariantchecker(): """ return self.retriever.loadrecord(identifier) + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_deletion_in_frame(self): """ Simple in-frame deletion should give a simple description on protein @@ -61,6 +63,7 @@ class TestVariantchecker(): in self.output.getOutput('protDescriptions') assert self.output.getOutput('newprotein') + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_insertion_in_frame(self): """ Simple in-frame insertion should give a simple description on protein @@ -75,6 +78,7 @@ class TestVariantchecker(): in self.output.getOutput('protDescriptions') assert self.output.getOutput('newprotein') + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_deletion_insertion_in_frame(self): """ Simple in-frame deletion/insertion should give a simple description on @@ -90,6 +94,7 @@ class TestVariantchecker(): in self.output.getOutput('protDescriptions') assert self.output.getOutput('newprotein') + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_deletion_insertion_in_frame_complete(self): """ Simple in-frame deletion/insertion should give a simple description on @@ -198,6 +203,7 @@ class TestVariantchecker(): wroll = self.output.getMessagesWithErrorCode('WROLLFORWARD') assert len(wroll) > 0 + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_roll_both_ins(self): """ Insertion that rolls should not use the same inserted sequence in @@ -231,6 +237,7 @@ class TestVariantchecker(): assert_equal ('AL449423.14:g.65471_65472insACT', self.output.getIndexedOutput('genomicDescription', 0, '')) assert_equal(len(self.output.getMessagesWithErrorCode('WROLLFORWARD')), 1) + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_roll_reverse_ins(self): """ Insertion that rolls on the reverse strand should not use the same @@ -241,6 +248,7 @@ class TestVariantchecker(): assert_equal ('AL449423.14:g.65471_65472insACT', self.output.getIndexedOutput('genomicDescription', 0, '')) assert_equal(len(self.output.getMessagesWithErrorCode('WROLLFORWARD')), 0) + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_roll_message_forward(self): """ Roll warning message should only be shown for currently selected @@ -250,6 +258,7 @@ class TestVariantchecker(): assert_equal(len(self.output.getMessagesWithErrorCode('WROLLFORWARD')), 1) assert_equal(len(self.output.getMessagesWithErrorCode('WROLLREVERSE')), 0) + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_roll_message_reverse(self): """ Roll warning message should only be shown for currently selected @@ -439,6 +448,7 @@ class TestVariantchecker(): # Todo: .c notation should still be c.632-?_681+?del, but what about # other transcripts? + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_del_exon_unknown_offsets_reverse(self): """ Deletion of an entire exon with unknown offsets should be possible, @@ -731,6 +741,7 @@ class TestVariantchecker(): assert ud + '(MARK1_v001):c.401del' \ in self.output.getOutput('descriptions') + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_deletion_with_sequence_forward_genomic(self): """ Specify the deleted sequence in a deletion. @@ -741,6 +752,7 @@ class TestVariantchecker(): assert 'AL449423.14(CDKN2A_v001):c.98_99del' \ in self.output.getOutput('descriptions') + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_deletion_with_length_forward_genomic(self): """ Specify the deleted sequence length in a deletion. @@ -751,6 +763,7 @@ class TestVariantchecker(): assert 'AL449423.14(CDKN2A_v001):c.98_99del' \ in self.output.getOutput('descriptions') + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_deletion_with_sequence_reverse_coding(self): """ Specify the deleted sequence in a deletion on the reverse strand. @@ -761,6 +774,7 @@ class TestVariantchecker(): assert 'AL449423.14(CDKN2A_v001):c.161_163del' \ in self.output.getOutput('descriptions') + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_deletion_with_length_reverse_coding(self): """ Specify the deleted sequence length in a deletion on the reverse strand. diff --git a/tests/test_website.py b/tests/test_website.py index 8607cac1efefb6f467deb23f07359a249f2f4023..56b06d07aac08b54aeeeea572ff6666fa9ad7c24 100644 --- a/tests/test_website.py +++ b/tests/test_website.py @@ -406,6 +406,7 @@ class TestWSGI(): assert_equal(len(result.strip().split('\n')) - 1, lines) return result + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_batch_namechecker(self): """ Submit the batch name checker form. @@ -429,6 +430,7 @@ class TestWSGI(): size=len(variants), header='Input\tErrors | Messages') + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_batch_syntaxchecker(self): """ Submit the batch syntax checker form. @@ -453,6 +455,7 @@ class TestWSGI(): size=len(variants), header='Input Variant') + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_batch_syntaxchecker_newlines_unix(self): """ Submit the batch syntax checker form with unix line endings. @@ -465,6 +468,7 @@ class TestWSGI(): size=len(variants), header='Input\tStatus') + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_batch_syntaxchecker_newlines_mac(self): """ Submit the batch syntax checker form with mac line endings. @@ -477,6 +481,7 @@ class TestWSGI(): size=len(variants), header='Input\tStatus') + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_batch_syntaxchecker_newlines_windows(self): """ Submit the batch syntax checker form with windows line endings. @@ -489,6 +494,7 @@ class TestWSGI(): size=len(variants), header='Input\tStatus') + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_batch_syntaxchecker_newlines_big_unix(self): """ Submit the batch syntax checker form with unix line ending @@ -506,6 +512,7 @@ class TestWSGI(): size=len(variants), header='Input\tStatus') + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_batch_syntaxchecker_newlines_big_mac(self): """ Submit the batch syntax checker form with mac line ending @@ -523,6 +530,7 @@ class TestWSGI(): size=len(variants), header='Input\tStatus') + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_batch_syntaxchecker_newlines_big_windows(self): """ Submit the batch syntax checker form with windows line ending @@ -540,6 +548,7 @@ class TestWSGI(): size=len(variants), header='Input\tStatus') + @skip # Todo: AL449423.14 no longer contains gene annotations. def test_batch_syntaxchecker_oldstyle(self): """ Submit the batch syntax checker form with old style input file. @@ -600,6 +609,7 @@ facilisi.""" r = form.submit(status=413) assert_equal(r.content_type, 'text/plain') + @skip # Todo: AL449423.14 no longer contains gene annotations. @slow def test_batch_multicolumn(self): """