Skip to content

Commit

Permalink
fix tyk2 example test (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
jthorton authored Dec 12, 2024
1 parent 7c67064 commit 401ae3d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions openfecli/tests/test_rbfe_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- runs plan_rbfe_network with tyk2 inputs and checks the network created
- mocks the calculations and performs gathers on the mocked outputs
"""
import os

import pytest
from importlib import resources
Expand Down Expand Up @@ -43,12 +44,12 @@ def expected_transformations():
'easy_rbfe_lig_ejm_42_complex_lig_ejm_50_complex.json',
'easy_rbfe_lig_ejm_42_solvent_lig_ejm_43_solvent.json',
'easy_rbfe_lig_ejm_42_solvent_lig_ejm_50_solvent.json',
'easy_rbfe_lig_ejm_46_complex_lig_jmc_27_complex.json',
'easy_rbfe_lig_ejm_46_solvent_lig_jmc_27_solvent.json',
'easy_rbfe_lig_ejm_46_solvent_lig_jmc_23_solvent.json',
'easy_rbfe_lig_ejm_46_complex_lig_jmc_23_complex.json',
'easy_rbfe_lig_jmc_23_complex_lig_jmc_27_complex.json',
'easy_rbfe_lig_jmc_23_solvent_lig_jmc_27_solvent.json',
'easy_rbfe_lig_jmc_27_complex_lig_jmc_28_complex.json',
'easy_rbfe_lig_jmc_27_solvent_lig_jmc_28_solvent.json']
'easy_rbfe_lig_jmc_23_solvent_lig_jmc_28_solvent.json',
'easy_rbfe_lig_jmc_23_complex_lig_jmc_28_complex.json']


def test_plan_tyk2(tyk2_ligands, tyk2_protein, expected_transformations):
Expand All @@ -64,6 +65,8 @@ def test_plan_tyk2(tyk2_ligands, tyk2_protein, expected_transformations):
for f in expected_transformations:
assert path.exists(
path.join('alchemicalNetwork/transformations', f))
# make sure these are the only transforms
assert len(os.listdir("alchemicalNetwork/transformations")) == len(expected_transformations)


@pytest.fixture
Expand Down Expand Up @@ -94,9 +97,9 @@ def ref_gather():
lig_ejm_31\tlig_ejm_50\t0.0\t0.0
lig_ejm_42\tlig_ejm_43\t0.0\t0.0
lig_ejm_42\tlig_ejm_50\t0.0\t0.0
lig_ejm_46\tlig_jmc_27\t0.0\t0.0
lig_ejm_46\tlig_jmc_23\t0.0\t0.0
lig_jmc_23\tlig_jmc_27\t0.0\t0.0
lig_jmc_27\tlig_jmc_28\t0.0\t0.0
lig_jmc_23\tlig_jmc_28\t0.0\t0.0
"""


Expand Down

0 comments on commit 401ae3d

Please sign in to comment.