-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #762 from openforcefield/fixtures
Reconfigure common objects into fixtures
- Loading branch information
Showing
22 changed files
with
200 additions
and
420 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
"""Pytest configuration.""" | ||
import pytest | ||
from openff.toolkit import ForceField, Molecule | ||
|
||
from openff.interchange._tests import get_test_file_path | ||
|
||
|
||
@pytest.fixture() | ||
def _simple_force_field(): | ||
# TODO: Create a minimal force field for faster tests | ||
pass | ||
|
||
|
||
@pytest.fixture() | ||
def tip3p() -> ForceField: | ||
return ForceField("tip3p.offxml") | ||
|
||
|
||
@pytest.fixture() | ||
def tip4p() -> ForceField: | ||
return ForceField("tip4p_fb.offxml") | ||
|
||
|
||
@pytest.fixture() | ||
def gbsa_force_field() -> ForceField: | ||
return ForceField( | ||
"openff-2.0.0.offxml", | ||
get_test_file_path("gbsa.offxml"), | ||
) | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def water() -> Molecule: | ||
molecule = Molecule.from_mapped_smiles("[H:2][O:1][H:3]") | ||
molecule.generate_conformers(n_conformers=1) | ||
return molecule |
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
openff/interchange/_tests/energy_tests/components/tests_smirnoff.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.