Belle II Software  release-08-01-10
TestClusterControlDrmaa.SessionMock Class Reference

Classes

class  JobState
 

Public Member Functions

def __enter__ (self)
 
def __exit__ (self, exc, value, tb)
 
def createJobTemplate (self)
 
def runJob (self, jt)
 
def jobStatus (self, jt)
 
def deleteJobTemplate (self, jt)
 

Static Public Attributes

 jobStatusReturn = JobState.RUNNING
 the job state this session mock will return
 

Detailed Description

Class to mock a DRMAA session

Definition at line 26 of file test_clustercontroldrmaa.py.

Member Function Documentation

◆ __enter__()

def __enter__ (   self)
 to support python with syntax

Definition at line 46 of file test_clustercontroldrmaa.py.

◆ __exit__()

def __exit__ (   self,
  exc,
  value,
  tb 
)
 to support python with syntax

Definition at line 50 of file test_clustercontroldrmaa.py.

◆ createJobTemplate()

def createJobTemplate (   self)
fake creating job template

Definition at line 53 of file test_clustercontroldrmaa.py.

◆ deleteJobTemplate()

def deleteJobTemplate (   self,
  jt 
)
fake job deletion

Definition at line 65 of file test_clustercontroldrmaa.py.

◆ jobStatus()

def jobStatus (   self,
  jt 
)
fake job status terun

Definition at line 61 of file test_clustercontroldrmaa.py.

◆ runJob()

def runJob (   self,
  jt 
)
fake job running

Definition at line 57 of file test_clustercontroldrmaa.py.


The documentation for this class was generated from the following file: