Skip to content

Commit

Permalink
convert file paths to pathlib type
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaMolod committed Dec 20, 2023
1 parent 08482dd commit 5d4eee6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test_custom_db.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from alphapulldown.create_custom_template_db import create_db, parse_code
from alphapulldown.create_custom_template_db import create_db
import tempfile
import os
from alphafold.data import mmcif_parsing
Expand Down Expand Up @@ -63,13 +63,13 @@ def run_test(pdb_templates, chains):


def test_from_pdb(capfd):
run_test(["./test/test_data/true_multimer/3L4Q.pdb"], ["C"])
run_test([Path("./test/test_data/true_multimer/3L4Q.pdb")], ["C"])

def test_from_cif(capfd):
run_test(["./test/test_data/true_multimer/3L4Q.cif"], ["A"])
run_test([Path("./test/test_data/true_multimer/3L4Q.cif")], ["A"])

def test_from_af_output_pdb(capfd):
run_test(["./test/test_data/true_multimer/cage_BC_AF.pdb"], ["B"])
run_test([Path("./test/test_data/true_multimer/cage_BC_AF.pdb")], ["B"])

def test_from_minimal_pdb(capfd):
run_test(["./test/test_data/true_multimer/RANdom_name1_.7-1_0.pdb"], ["B"])
run_test([Path("./test/test_data/true_multimer/RANdom_name1_.7-1_0.pdb")], ["B"])

0 comments on commit 5d4eee6

Please sign in to comment.