Skip to content

Commit

Permalink
updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wiederm committed Feb 26, 2021
1 parent 4d6974f commit 679afeb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 7 additions & 4 deletions neutromeratio/tests/test_parameter_retraining.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ def test_u_ln_50_snapshots():
assert np.isclose(f_per_molecule.item(), f_scaled_to_mol.item())


@pytest.mark.skipif(
os.environ.get("TRAVIS", None) == "true", reason="Can't upload necessary files."
)
def test_u_ln_20_snapshots():
from ..parameter_gradients import (
setup_FEC,
Expand All @@ -99,7 +102,7 @@ def test_u_ln_20_snapshots():
data_path="data/test_data/vacuum",
ANImodel=model,
bulk_energy_calculation=False,
max_snapshots_per_window=50,
max_snapshots_per_window=20,
load_pickled_FEC=True,
include_restraint_energy_contribution=False,
)
Expand Down Expand Up @@ -855,9 +858,6 @@ def test_tweak_parameters_and_class_nn_CompartimentedAlchemicalANI():
)


@pytest.mark.skipif(
os.environ.get("TRAVIS", None) == "true", reason="Slow tests fail on travis."
)
@pytest.mark.skipif(
os.environ.get("TRAVIS", None) == "true", reason="Slow tests fail on travis."
)
Expand Down Expand Up @@ -2113,6 +2113,9 @@ def test_parameter_gradient():
del model


@pytest.mark.skipif(
os.environ.get("TRAVIS", None) == "true", reason="Can't upload necessary files."
)
def test_parameter_gradient_opt_script():
import neutromeratio

Expand Down
3 changes: 3 additions & 0 deletions neutromeratio/tests/test_tautomer_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,9 @@ def test_species_conversion():
print(m.species_to_tensor(tautomer.initial_state_ligand_atoms))


@pytest.mark.skipif(
os.environ.get("TRAVIS", None) == "true", reason="Slow tests fail on travis."
)
def test_setup_tautomer_system_in_vaccum():
from ..analysis import setup_alchemical_system_and_energy_function
from ..ani import AlchemicalANI1ccx, AlchemicalANI2x
Expand Down

0 comments on commit 679afeb

Please sign in to comment.