Skip to content

Commit fc98c2b

Browse files
committed
update fixtures
1 parent 1e02e84 commit fc98c2b

4 files changed

Lines changed: 4 additions & 10 deletions

File tree

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ dependencies:
5353
# Control blas/openmp threads
5454
- threadpoolctl
5555
- pip:
56-
- git+https://github.com/OpenFreeEnergy/gufe@parse_gzipped_pdbs
56+
- git+https://github.com/OpenFreeEnergy/gufe@main
5757
- run_constrained:
5858
# drop this pin when handled upstream in espaloma-feedstock
5959
- smirnoff99frosst>=1.1.0.1 #https://github.com/openforcefield/smirnoff99Frosst/issues/109

src/openfe/tests/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@ def a2a_protein_membrane_pdb():
297297

298298
@pytest.fixture(scope="session")
299299
def a2a_protein_membrane_component(a2a_protein_membrane_pdb) -> openfe.ProteinMembraneComponent:
300-
with gzip.open(a2a_protein_membrane_pdb, "rb") as f:
301-
yield openfe.ProteinMembraneComponent.from_pdb_file(f, name="a2a")
300+
yield openfe.ProteinMembraneComponent.from_pdb_file(a2a_protein_membrane_pdb, name="a2a")
302301

303302

304303
@pytest.fixture(scope="session")

src/openfecli/parameters/protein.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def _load_protein_membrane_file(user_input, context):
5555

5656
from gufe import ProteinMembraneComponent
5757

58-
# TODO: upstream gufe work may make this change for the better
5958
try:
6059
return ProteinMembraneComponent.from_pdb_file(user_input)
6160
except ValueError:

src/openfecli/tests/commands/test_plan_rbfe_network.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from click.testing import CliRunner
88
from gufe import (
99
AlchemicalNetwork,
10-
ProteinComponent,
1110
SmallMoleculeComponent,
1211
SolventComponent,
1312
)
@@ -20,7 +19,7 @@
2019
ligand_network_planning,
2120
lomap_scorers,
2221
)
23-
from openfe.tests.conftest import T4_protein_component_pdb
22+
from openfe.tests.conftest import T4_protein_component, T4_protein_component_pdb
2423
from openfecli.commands.plan_rbfe_network import plan_rbfe_network, plan_rbfe_network_main
2524

2625
from ..utils import assert_click_success
@@ -430,10 +429,7 @@ def custom_yaml_radial():
430429
"""
431430

432431

433-
@pytest.mark.skipif(
434-
not HAS_NAGL,
435-
reason="needs NAGL",
436-
)
432+
@pytest.mark.skipif(not HAS_NAGL, reason="needs NAGL")
437433
@pytest.mark.skipif(
438434
HAS_OPENEYE, reason="cannot use NAGL with rdkit backend when OpenEye is installed"
439435
)

0 commit comments

Comments
 (0)