Table of Contents

Class: DocumentProcessor ./src/peak/ddt/processors.py

The default document processor, used to process a test document

This processor just looks at each table and finds a processor for that table, using the peak.ddt.processors property namespace. It then invokes the processor on the corresponding table.

If you have a project that requires special setup or configuration for the tests being run, you can subclass this to do that. You'll just need to get the test "runner" to use your class instead of this one, which can be done in an .ini file with:

        [Component Factories]
        peak.ddt.interfaces.IDocumentProcessor = "my_package.MyProcessorClass"

Base Classes   
binding.Component
Methods   
getProcessor
processDocument
processTable
processTables
setUp
tearDown
  getProcessor 
getProcessor ( self,  text )

Return an ITableProcessor for text in a cell

  processDocument 
processDocument ( self,  document )

  processTable 
processTable (
        self,
        table,
        tables,
        )

Delegate to ITableProcessor specified by table's first cell

  processTables 
processTables ( self,  tables )

  setUp 
setUp ( self,  document )

  tearDown 
tearDown ( self,  document )


Table of Contents

This document was automatically generated on Mon Apr 15 01:11:05 2024 by HappyDoc version 2.1