Package schrodinger :: Package test :: Package stu :: Module testscripts
[hide private]
[frames] | no frames]

Module testscripts

Contains the class TestScript, which provides methods to create, modify, extract and delete a test script. See also the convenience function l{getTestFromDir}, which can be used to read a test from a directory.

Classes [hide private]
  READMESyntaxError
Exception for issues with the syntax of a README file.
  TestScript
Functions [hide private]
tuple(int/str, bool)
get_test_id(directory)
Get the test ID based on the directory name.
 
getTestFromDir(username, directory, filename='README')
Read test information from a file.
Variables [hide private]
  logger = log.get_logger('test_backend')
  EXECUTED_DIR = re.compile(r'^(.+)_run_\d\d\d\d-\d\d-\d\d')
  README2TEST = {}
Correspondence between README values and test values.
  TEST2README = {}
Correspondence between README values and test values.
  LIST_VALUES = []
Values that are lists.
  __package__ = 'schrodinger.test.stu'
Function Details [hide private]

get_test_id(directory)

 

Get the test ID based on the directory name. Also guesses whether the test has already been run.

Returns: tuple(int/str, bool)
(TestID, Was the test executed?)