Skip to content

Commit 4e0b0df

Browse files
committed
add test_get_parser
1 parent a16aa99 commit 4e0b0df

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/test_parsers.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from Bio.PDB.PDBParser import PDBParser
66
from Bio.PDB.Structure import Structure
77

8-
from prodigy_prot.modules.parsers import parse_structure, validate_structure
8+
from prodigy_prot.modules.parsers import get_parser, parse_structure, validate_structure
99

1010
from . import TEST_DATA
1111

@@ -20,6 +20,18 @@ def input_structure_pdb() -> Path:
2020
return Path(TEST_DATA, "2oob.pdb")
2121

2222

23+
def test_get_parser_pdb(input_structure_pdb):
24+
25+
parser = get_parser(input_structure_pdb)
26+
assert isinstance(parser, PDBParser)
27+
28+
29+
def test_get_parser_cif(input_structure_cif):
30+
31+
parser = get_parser(input_structure_cif)
32+
assert isinstance(parser, MMCIFParser)
33+
34+
2335
def test_validate_stucture_pdb(input_structure_pdb):
2436

2537
parser = PDBParser()

0 commit comments

Comments
 (0)