class_docstr: Does sanity checks on pose generation.
class_docstr_tok: ["Does","sanity","checks","on","pose","generation","."]
docstr: Test that GninaPoseGenerator generates poses and scores
  
  This test takes some time to run, about 3 minutes on
  development laptop.
docstr_tok: ["Test","that","GninaPoseGenerator","generates","poses","and","scores","This","test","takes","some","time","to","run",",","about","3","minutes","on","development","laptop","."]
code: def test_gnina_poses_and_scores(self):
      """Test that GninaPoseGenerator generates poses and scores
  
      This test takes some time to run, about 3 minutes on
      development laptop.
      """
      # Let's turn on logging since this test will run for a while
      logging.basicConfig(level=logging.INFO)
      current_dir = os.path.dirname(os.path.realpath(__file__))
      protein_file = os.path.join(current_dir, "1jld_protein.pdb")
      ligand_file = os.path.join(current_dir, "1jld_ligand.sdf")
  
      gpg = dc.dock.GninaPoseGenerator()
      with tempfile.TemporaryDirectory() as tmp:
          poses, scores = gpg.generate_poses(
              (protein_file, ligand_file),
              exhaustiveness=1,
              num_modes=1,
              out_dir=tmp,
          )
  
      assert len(poses) == 1
      assert len(scores) == 1
      protein, ligand = poses[0]
      from rdkit import Chem
  
      assert isinstance(protein, Chem.Mol)
      assert isinstance(ligand, Chem.Mol)
  
file_path: deepchem/deepchem/dock/tests/test_pose_generation.py
imports: import os
  import platform
  import tempfile
  import unittest
  import logging
  import numpy
  import deepchem
  import pytest
label_desc: Use image node_id 5 for calling the TestPoseGeneration obj's underlying member method code with example usage: obj.test_gnina_poses_and_scores() without return types