From 5d4eee6b719f5a615e6283b97b70730e8af19a37 Mon Sep 17 00:00:00 2001 From: Dima Molodenskiy Date: Wed, 20 Dec 2023 12:47:52 +0100 Subject: [PATCH] convert file paths to pathlib type --- test/test_custom_db.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_custom_db.py b/test/test_custom_db.py index 674b1441..863d273b 100644 --- a/test/test_custom_db.py +++ b/test/test_custom_db.py @@ -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 @@ -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"]) \ No newline at end of file + run_test([Path("./test/test_data/true_multimer/RANdom_name1_.7-1_0.pdb")], ["B"]) \ No newline at end of file