OpenStructure
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
_TestInfo Class Reference

Inherits object.

Public Member Functions

 __init__ (self, test, time)
 
 print_report (self, stream)
 

Static Public Member Functions

 create_success (test, time)
 
 create_failure (test, time, failure)
 
 create_error (test, time, error)
 

Protected Member Functions

 _print_error (self, stream, tagname, error)
 

Protected Attributes

 _class
 
 _method
 
 _time
 
 _error
 
 _failure
 

Detailed Description

Information about a particular test.

Used by _XMLTestResult.

Definition at line 24 of file xmlrunner.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
  test,
  time 
)

Definition at line 32 of file xmlrunner.py.

Member Function Documentation

◆ _print_error()

_print_error (   self,
  stream,
  tagname,
  error 
)
protected
Print information from a failure or error to the supplied stream.

Definition at line 74 of file xmlrunner.py.

◆ create_error()

create_error (   test,
  time,
  error 
)
static
Create a _TestInfo instance for an erroneous test.

Definition at line 51 of file xmlrunner.py.

◆ create_failure()

create_failure (   test,
  time,
  failure 
)
static
Create a _TestInfo instance for a failed test.

Definition at line 44 of file xmlrunner.py.

◆ create_success()

create_success (   test,
  time 
)
static
Create a _TestInfo instance for a successful test.

Definition at line 39 of file xmlrunner.py.

◆ print_report()

print_report (   self,
  stream 
)
Print information about this test case in XML format to the
supplied stream.

Definition at line 57 of file xmlrunner.py.

Field Documentation

◆ _class

_class
protected

Definition at line 33 of file xmlrunner.py.

◆ _error

_error
protected

Definition at line 35 of file xmlrunner.py.

◆ _failure

_failure
protected

Definition at line 36 of file xmlrunner.py.

◆ _method

_method
protected

Definition at line 33 of file xmlrunner.py.

◆ _time

_time
protected

Definition at line 34 of file xmlrunner.py.


The documentation for this class was generated from the following file: