File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 55from Bio .PDB .PDBParser import PDBParser
66from 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
1010from . 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+
2335def test_validate_stucture_pdb (input_structure_pdb ):
2436
2537 parser = PDBParser ()
You can’t perform that action at this time.
0 commit comments