Skip to content

Commit

Permalink
fixing python lib name
Browse files Browse the repository at this point in the history
reducing scope of test_bam2fastq.py
  • Loading branch information
bryan-brancotte committed Mar 19, 2018
1 parent 7143aa5 commit b944e9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bioconvert/clustal2fasta.py
Expand Up @@ -29,7 +29,7 @@ def __init__(self, infile, outfile=None, alphabet=None, *args, **kwargs):
self.alphabet = alphabet
self._default_method = 'biopython'

@requires(python_library="biopython")
@requires(python_library="Bio")
def _method_biopython(self, threads=None):
"""
Convert :term:`CLUSTAL` interleaved file in :term:`PHYLIP` format using biopython.
Expand Down
10 changes: 4 additions & 6 deletions test/test_bam2fastq.py
@@ -1,14 +1,12 @@
from bioconvert.bam2fastq import BAM2Fastq
from bioconvert import bioconvert_data
from easydev import TempFile, md5
import pytest

@pytest.mark.parametrize("method", BAM2Fastq.available_methods)
def test_conv(method):
def test_conv():
infile = bioconvert_data("test_measles.sorted.bam")
with TempFile(suffix=".fq") as tempfile:
convert = BAM2Fastq(infile, tempfile.name)
convert(method=method)
convert()

# Check that the output is correct with a checksum
# Note that we cannot test the md5 on a gzip file but only
Expand All @@ -17,5 +15,5 @@ def test_conv(method):
assert md5(tempfile.name) == "8683ad696e52e4af67670d2631af6d1f"


# for method in convert.available_methods:
# convert(method=method)
for method in convert.available_methods:
convert(method=method)

0 comments on commit b944e9f

Please sign in to comment.