Skip to content

Commit

Permalink
Try to prevent random fails of Travis
Browse files Browse the repository at this point in the history
preventing BDB tests from running in parallel
  • Loading branch information
krassowski committed Jan 11, 2019
1 parent 22a2eee commit a19270f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -34,7 +34,8 @@ install:


script:
- python3 -m pytest -x -n 2 --cov=. -k 'not test_import_results and not test_data and not celery' -v -p no:warnings
- python3 -m pytest -x -n 2 --cov=. -k 'not test_import_results and not test_data and not celery' -m 'not serial' -v -p no:warnings
- python3 -m pytest --cov=. --cov-append -m 'serial' -v -p no:warnings


after_success:
Expand Down
5 changes: 5 additions & 0 deletions website/tests/test_imports/test_protein_mappings.py
@@ -1,5 +1,8 @@
import gzip
from os import path

import pytest

from imports.mappings import import_genome_proteome_mappings, import_aminoacid_mutation_refseq_mappings
from database_testing import DatabaseTest
from models import Protein
Expand Down Expand Up @@ -56,6 +59,7 @@ def create_test_data():

class TestImport(DatabaseTest):

@pytest.mark.serial
def test_genome_proteome_mappings(self):

mappings_filename, gene, proteins = create_test_data()
Expand All @@ -75,6 +79,7 @@ def test_genome_proteome_mappings(self):
assert set(broken_sequences.keys()) == {'NM_002749'}
assert [('NM_002749', 'L', 'A', '5', 'Q')] in list(broken_sequences.values())

@pytest.mark.serial
def test_gene_mutation_mappings(self):

mappings_filename, gene, proteins = create_test_data()
Expand Down

0 comments on commit a19270f

Please sign in to comment.