Table of Contents

Class: ExtensionDatabase qm/test/file_database.py

An ExtensionFileDatabase is a FileDatabase where each kind of entity (test, suite, resource) has a particular extension. For examples, if tests have the extension .qmt, then all files ending with .qmt are considered tests. If an extension for a particular kind of entity is not specified is the empty string, then all files will be considered to be that kind of entity.

ExtensionDatabase is an abstract class.

Base Classes   
FileDatabase
    Database
Methods   
GetResourceExtension
GetResourcePath
GetSuiteExtension
GetSuitePath
GetTestExtension
GetTestPath
_GetLabelFromBasename
_GetPathFromLabel
_GetRelativeLabelPath
_IsResourceFile
_IsSuiteFile
_IsTestFile
__init__
  GetResourceExtension 
GetResourceExtension ( self )

Return the extension that indicates a file is a resource.

returns
The extension (including the leading period) that indicates that a file is a resource.
  GetResourcePath 
GetResourcePath ( self,  resource_id )

  GetSuiteExtension 
GetSuiteExtension ( self )

Return the extension that indicates a file is a suite.

returns
The extension (including the leading period) that indicates that a file is a suite.
  GetSuitePath 
GetSuitePath ( self,  suite_id )

  GetTestExtension 
GetTestExtension ( self )

Return the extension that indicates a file is a test.

returns
The extension (including the leading period) that indicates that a file is a test.
  GetTestPath 
GetTestPath ( self,  test_id )

  _GetLabelFromBasename 
_GetLabelFromBasename ( self,  basename )

  _GetPathFromLabel 
_GetPathFromLabel ( self,  label )

  _GetRelativeLabelPath 
_GetRelativeLabelPath ( self,  label )

Returns a representation of label as a filename.

returns
A filename corresponding to label.
  _IsResourceFile 
_IsResourceFile ( self,  path )

  _IsSuiteFile 
_IsSuiteFile ( self,  path )

  _IsTestFile 
_IsTestFile ( self,  path )

  __init__ 
__init__ (
        self,
        path,
        arguments,
        )


Table of Contents

This document was automatically generated on Mon Jan 3 09:42:29 2005 by HappyDoc version 2.1