Skip to content

Commit

Permalink
Fix moldesign_complete env; remove a bit of test redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
avirshup committed Nov 16, 2017
1 parent 74d1589 commit 997df52
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions DockerMakefiles/Moldesign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ moldesign_complete_requirements:
moldesign_complete:
requires:
- python_deploy
- moldesign_installed
- moldesign_complete_requirements

moldesign_complete_py2:
requires:
- python_deploy_py2
- moldesign_installed
- moldesign_complete_requirements


moldesign_notebook:
Expand Down
7 changes: 3 additions & 4 deletions moldesign/_tests/test_qm_xfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ def h2_with_model(request, h2):
return h2


def test_minimization_trajectory(h2_with_model):
mol = h2_with_model
if mol.energy_model.params.theory == 'mp2':
pytest.skip('Not testing mp2 minimizations at this time')
def test_minimization_trajectory(h2):
mol = h2
h2.set_energy_model(mdt.models.PySCFPotential, basis='sto-3g', theory='rks')

assert 'potential_energy' not in mol.properties

Expand Down
2 changes: 1 addition & 1 deletion moldesign/_tests/test_trajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def test_add_traj(precanned_trajectory):
assert newtraj.num_frames == 2 * precanned_trajectory.num_frames


@pytest.fixture
@pytest.fixture(scope='module')
def h2_wfn_traj(h2):
mol = h2.copy()
mol.set_energy_model(mdt.models.RHF, basis='sto-3g')
Expand Down
5 changes: 2 additions & 3 deletions moldesign/_tests/test_wfn.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@
TESTSYSTEMS = ['h2_rhf_augccpvdz', 'h2_rhf_sto3g', 'acetylene_dft_631g']


@pytest.mark.parametrize('molkey', TESTSYSTEMS)
def test_pyscf_orbital_grid_works(molkey, request):
def test_pyscf_orbital_grid_works(h2_rhf_augccpvdz):
""" Tests the basic input/output of the pyscf basis_values function
Doesn't actually test the values directly - just that the answers are mathematically consistent
"""
mol = request.getfixturevalue(molkey)
mol = h2_rhf_augccpvdz
wfn = mol.wfn
nbasis = len(wfn.aobasis)

Expand Down

0 comments on commit 997df52

Please sign in to comment.