Skip to content

Commit f948a55

Browse files
kirandharmar867-makerpeterjc
authored andcommitted
Add test for run_psea using a temporary directory
1 parent 156e6b6 commit f948a55

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Tests/test_PDB_PSEA.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ def test_psea_2HEC(self):
9595
],
9696
)
9797

98+
def test_run_psea_tempdir(self):
99+
import tempfile
100+
101+
with tempfile.TemporaryDirectory() as tmpdir:
102+
psae_run = run_psea("PDB/1A8O.pdb", outdir=tmpdir)
103+
output_file = os.path.join(tmpdir, psae_run)
104+
105+
self.assertTrue(os.path.exists(output_file))
106+
self.assertTrue(psae_run.endwith(".sea"))
107+
98108

99109
class TestPSEA(unittest.TestCase):
100110
def tearDown(self):

0 commit comments

Comments
 (0)