Skip to content

Commit 816f86a

Browse files
apcamargoaudy
authored andcommitted
Use assertIsInstance in test_pathlib_path_input
1 parent f88cb3b commit 816f86a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test_python.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from needletail import (
55
NeedletailError,
6+
PyFastxReader,
67
Record,
78
normalize_seq,
89
parse_fastx_file,
@@ -179,7 +180,7 @@ def test_can_parse_fastq_file(self):
179180
self.assertTrue(i <= 2)
180181

181182
def test_pathlib_path_input(self):
182-
parse_fastx_file(Path(FASTA_FILE))
183+
self.assertIsInstance(parse_fastx_file(Path(FASTA_FILE)), PyFastxReader)
183184

184185

185186
class StrParsingTestCase(FileParsingTestCase):

0 commit comments

Comments
 (0)