Skip to content

Commit

Permalink
move skip decorator to individual test functions. note that pytest.ma…
Browse files Browse the repository at this point in the history
…rk.skipIf does not work well on osx and this appears to be a known pytest bug
  • Loading branch information
dpark01 committed Aug 16, 2017
1 parent c8ea96f commit 37d2b1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/integration/test_intrahost.py
Expand Up @@ -16,14 +16,14 @@
import test
import tools

#@unittest.skipIf(tools.is_osx(), "vphaser2 osx binary from bioconda has issues")
class TestPerSample(test.TestCaseWithTmp):
''' This tests step 1 of the iSNV calling process
(intrahost.vphaser_one_sample), which runs V-Phaser2 on
a single sample, reformats the output slightly, and performs
strand-bias filtering and adds library-bias statistics.
'''

@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,6 +58,7 @@ def test_vphaser_one_sample_one_mate_unpaired(self):
intrahost.vphaser_one_sample(inBam, refFasta, outTab, vphaserNumThreads=4, minReadsEach=0, removeDoublyMappedReads=True)
assert os.path.getsize(outTab) == 0

@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 @@ -69,6 +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")
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

0 comments on commit 37d2b1d

Please sign in to comment.