schrodinger.seam.testing.fixtures module

schrodinger.seam.testing.fixtures.track_leaked_loghandlers()

Context manager that tracks loghandlers that are leaked during the yield. Yields a dict of leaked loggers to leaked handlers.

schrodinger.seam.testing.fixtures.mock_job_backend()

Mock for simulating being in a job backend context.

Example usage:

def test_foo(mock_job_backend):

# Set up the mock mock_job_backend.setJobID(‘1234’) mock_job_backend.setJobName(‘MySeamJob’) mock_job_backend.setHostEntry(‘DRIVERQUEUE’) mock_job_backend.setSubhost((“SUBHOST”, 12))

# Do things that require being in a job backend context from schrodinger.job import jobcontrol jobcontrol.get_backend().job_id == ‘1234’ jobcontrol.get_backend().getJob().JobID == ‘1234’ jobcontrol.get_backend().getJob().Name == ‘MySeamJob’ jobcontrol.get_backend().getJob().HostEntry == ‘DRIVERQUEUE’ jobcontrol.get_backend_host_list() == [(“SUBHOST”, 12)]

schrodinger.seam.testing.fixtures.visualize_pipelines(request)
schrodinger.seam.testing.fixtures.without_trial_fleet()