Module nif_test :: Class TestSuite
[hide private]
[frames] | no frames]

Class TestSuite

source code

A test suite class.

Instance Methods [hide private]
 
__init__(self, name)
Initialize a new test suite with given name.
source code
NifImport or NifExport
test(self, filename=None, config=None, selection=None, next_layer=None)
Run given test, and increase layer after export.
source code
 
run(self)
Run the test suite.
source code
Instance Variables [hide private]
int layer
The current Blender layer in the scene.
Blender.Scene.Scene scene
The Blender scene for this test suite.
Method Details [hide private]

__init__(self, name)
(Constructor)

source code 

Initialize a new test suite with given name.

Parameters:
  • name (str) - The name of the test (will be used as name of the scene for this test).

test(self, filename=None, config=None, selection=None, next_layer=None)

source code 

Run given test, and increase layer after export.

Parameters:
  • filename (str) - The name of the file to test.
  • config (dict) - Configuration options that differ from their default values. If the dictionary has the key EXPORT_VERSION then the selection is exported, otherwise a file is imported. Optional.
  • selection (list of str) - List of names of objects to select before running the test. Optional.
  • next_layer (bool or NoneType) - Whether or not to advance a layer after the test. If None (default) then a layer is advanced only after export.
Returns: NifImport or NifExport
The import or export object.

run(self)

source code 

Run the test suite. Override.