From 9ae04e274afbb845be1531041ba0dc53937cd4d8 Mon Sep 17 00:00:00 2001 From: Dima Molodenskiy Date: Wed, 25 Sep 2024 11:51:12 +0200 Subject: [PATCH] Add analysis_pipeline to for the local test as well --- test/test_get_good_inter_pae.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_get_good_inter_pae.py b/test/test_get_good_inter_pae.py index 36dbe5b6..e224ac12 100644 --- a/test/test_get_good_inter_pae.py +++ b/test/test_get_good_inter_pae.py @@ -1,12 +1,13 @@ from absl.testing import absltest from unittest.mock import patch, mock_open, MagicMock -import json +import os, sys, json import pandas as pd +# Add the root directory of your project to sys.path +sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../alphapulldown/analysis_pipeline'))) from alphapulldown.analysis_pipeline.get_good_inter_pae import obtain_seq_lengths, main class TestGetGoodInterPae(absltest.TestCase): - @patch('alphapulldown.analysis_pipeline.get_good_inter_pae.os.path.exists') @patch('alphapulldown.analysis_pipeline.get_good_inter_pae.PDBParser.get_structure') @patch('alphapulldown.analysis_pipeline.get_good_inter_pae.PPBuilder.build_peptides')