Skip to content

Commit

Permalink
reenable vphaser tests under osx, skip TestNcbiFetch since it was not…
Browse files Browse the repository at this point in the history
… being used; py2-style TestFeatureTransfer init (#848)
  • Loading branch information
tomkinsc authored Jul 17, 2018
1 parent 6cb945e commit 5365a67
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/integration/test_intrahost.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class TestPerSample(test.TestCaseWithTmp):
strand-bias filtering and adds library-bias statistics.
'''

@unittest.skipIf(tools.is_osx(), "vphaser2 osx binary from bioconda has issues")
#@unittest.skipIf(tools.is_osx(), "vphaser2 osx binary from bioconda has issues")
def test_vphaser_one_sample_indels(self):
# Files here were created as follows:
# ref.indels.fasta is Seed-stock-137_S2_L001_001.fasta
Expand Down Expand Up @@ -58,7 +58,7 @@ def test_vphaser_one_sample_one_mate_unpaired(self):
intrahost.vphaser_one_sample(inBam, refFasta, outTab, vphaserNumThreads=test._CPUS, minReadsEach=0, removeDoublyMappedReads=True)
assert os.path.getsize(outTab) == 0

@unittest.skipIf(tools.is_osx(), "vphaser2 osx binary from bioconda has issues")
#@unittest.skipIf(tools.is_osx(), "vphaser2 osx binary from bioconda has issues")
def test_vphaser_one_sample_2libs(self):
# in.2libs.bam was created by "manually" editing in.bam and moving about
# 1/3 of the reads to ReadGroup2.
Expand All @@ -70,7 +70,7 @@ def test_vphaser_one_sample_2libs(self):
expected = os.path.join(myInputDir, 'vphaser_one_sample_2libs_expected.txt')
self.assertEqualContents(outTab, expected)

@unittest.skipIf(tools.is_osx(), "vphaser2 osx binary from bioconda has issues")
#@unittest.skipIf(tools.is_osx(), "vphaser2 osx binary from bioconda has issues")
def test_vphaser_one_sample_3libs_and_chi2(self):
# In addition to testing that we can handle 3 libraries, this is testing
# the chi2_contingency approximation to fisher_exact. The 4th, 5th,
Expand Down
1 change: 1 addition & 0 deletions test/integration/test_ncbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

skip_test = True

@unittest.skipIf(skip_test, "test is marked to be skipped")
class TestNcbiFetch(TestCaseWithTmp):

def setUp(self):
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test_ncbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_help_parser_for_each_command(self):

class TestFeatureTransfer(TestCaseWithTmp):
def setUp(self):
TestCaseWithTmp.setUp(self)
super(TestFeatureTransfer, self).setUp()
self.input_dir = util.file.get_test_input_path(self)

def test_synthetic_feature_table(self):
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test_tools_vphaser2.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from test import TestCaseWithTmp, _CPUS


@unittest.skipIf(tools.is_osx(), "vphaser2 osx binary from bioconda has issues")
#@unittest.skipIf(tools.is_osx(), "vphaser2 osx binary from bioconda has issues")
class TestVPhaser2(TestCaseWithTmp):

def test_vphaser2(self):
Expand Down

0 comments on commit 5365a67

Please sign in to comment.