Skip to content

Commit a0e568a

Browse files
author
Nolan Woods
committed
Add test for gff output
1 parent 5ea01f6 commit a0e568a

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

tests/test_convert.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class TestConvert(TestCase):
1717
record_hash = ('8d02b2087c4cea42da7c5f0a69b7a40d544d953c1a9d611b97bd116cc1f8cd7f',
1818
'e37ecc4288ae8b2c3bea25484326a69ced9679fa791162ed593064fdf535944d',
1919
'e142d7e1fbd103c96e3b728e3b75f7af6955c97cdbddb87c3202f2c1e2f133d4')
20+
gff_hash = '8205a9eb570321605db4e5337f2c1d3f2ab6da6b9e43a7cfc35e5ac5182aad3c'
2021

2122
def setUp(self) -> None:
2223
self.workdir = TemporaryDirectory()
@@ -74,4 +75,12 @@ def test_split(self):
7475
self.assertEqual(
7576
record_hash,
7677
self.hash_file(record_path),
77-
)
78+
)
79+
80+
def test_gff(self):
81+
output_path = Path(self.workdir.name, 'gff')
82+
convert(self.input_path, self.input_type, output_path, 'gff3')
83+
self.assertEqual(
84+
self.gff_hash,
85+
self.hash_file(output_path),
86+
)

0 commit comments

Comments
 (0)