Package Biskit :: Module test :: Class FilteredTestSuite
[hide private]
[frames] | no frames]

Class FilteredTestSuite

source code


Collection of BiskitTests filtered by category tags. FilteredTestSuite silently ignores Test cases that are either

* classified into any of the forbidden categories

* not classified into any of the allowed categories

By default (if initialized without parameters), all groups are allowed and no groups are forbidden.

Instance Methods [hide private]
  __init__(self, tests=(), allowed=[], forbidden=[])
  addTest(self, test)
Add Biskit test case if it is matching the allowed and disallowed groups.

Method Details [hide private]

__init__(self, tests=(), allowed=[], forbidden=[])
(Constructor)

source code 
Parameters:
  • tests (( BiskitTest, )) - iterable of TestCases
  • allowed ([ int ]) - list of allowed tags
  • forbidden ([ int ]) - list of forbidden tags

addTest(self, test)

source code 

Add Biskit test case if it is matching the allowed and disallowed groups.
Parameters:
  • test (BiskitTest) - test case