Commit f333570c authored by Bharath Ramsundar's avatar Bharath Ramsundar
Browse files

Updates

parent 2f8ac8af
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -5,13 +5,6 @@ export python_version=2.7
bash scripts/install_deepchem_conda.sh $envname
source activate $envname
python setup.py install
conda install -y jupyter
conda install -y nbconvert
conda install -y jupyter_client
conda install -y ipykernel
conda install -y matplotlib
yes | pip install nglview
conda install -y ipywidgets

# Run adme test
cd examples/

examples/tests.py

0 → 100644
+29 −0
Original line number Diff line number Diff line
import os
import subprocess
import tempfile


def _example_run(path):
  """Checks that the example at the specified path runs corrently.

  Parameters
  ----------
  path: str
    Path to example file.
  Returns
  -------
  result: int 
    Return code. 0 for success, failure otherwise.
  """
  cmd = ["python", path]
  return subprocess.check_output(cmd)


def test_adme():
  result, output = _example_run("./adme/run_benchmarks.py")
  print(output)
  assert result == 0


if __name__ == "__main__":
  test_adme()