Package qm :: Package test :: Module database
[show private | hide private]
[frames | no frames]

Module qm.test.database

Classes
Database A 'Database' stores tests, testsuites, and resources.
ItemDescriptor An 'ItemDescriptor' describes a test, resource, or similar entity.
ResourceDescriptor A resource instance.
TestDescriptor A test instance.

Exceptions
DatabaseError An exception relating to a 'Database'.
NoSuchItemError An exception indicating that a particular item could not be found.
NoSuchResourceError The specified resource does not exist.
NoSuchSuiteError The specified suite does not exist.
NoSuchTestError The specified test does not exist.

Function Summary
  get_configuration_directory(path)
Return the configuration directory for the 'Database' rooted at 'path'.
  get_configuration_file(path)
Return the configuration file for the 'Database' rooted at 'path'.
  get_database()
Returns the global Database object.
  is_database(db_path)
Returns true if 'db_path' looks like a test database.
  load_database(db_path)
Load the database from 'db_path'.
  set_path(path)
Set the database path to be used when the database is loaded.

Function Details

get_configuration_directory(path)

Return the configuration directory for the 'Database' rooted at 'path'.

'path' -- The path to the test database.

returns -- The path to the configuration directory.

get_configuration_file(path)

Return the configuration file for the 'Database' rooted at 'path'.

'path' -- The path to the test database.

returns -- The path to the configuration file.

get_database()

Returns the global Database object.

returns -- The 'Database' object that corresponds to the currently executing process. It may be None.

is_database(db_path)

Returns true if 'db_path' looks like a test database.

load_database(db_path)

Load the database from 'db_path'.

'db_path' -- The path to the directory containing the database.

returns -- The new 'Database'.

set_path(path)

Set the database path to be used when the database is loaded.

'path' -- A string containing the path to the database.

Generated by Epydoc 2.1 on Thu Sep 27 15:49:06 2007 http://epydoc.sf.net