PyTest.tracker.enterSuite

Here are the examples of the python api PyTest.tracker.enterSuite taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

Example 1

Project: Voodoo-Mock Source File: pytestsuite.py
Function: run
    def _run( self ):
        PyTest.tracker.enterSuite( self._suiteDescription() );
        for ( testName, testMethod ) in self._testCases:
            PyTest.tracker.enterTest( self._testDescription( testName ) );
            self._setUpWrapper();
            self._callTestWrapper( testMethod );
            self._tearDownWrapper();
            PyTest.tracker.leaveTest( self._testDescription( testName ) );
        PyTest.tracker.leaveSuite( self._suiteDescription() );

Example 2

Project: Voodoo-Mock Source File: pytestsuite.py
Function: run_single_test
    def _runSingleTest( self, singleTest ):
        PyTest.tracker.enterSuite( self._suiteDescription() );
        for ( testName, testMethod ) in self._testCases:
            if testName != singleTest:
                continue
            PyTest.tracker.enterTest( self._testDescription( testName ) );
            self._setUpWrapper();
            self._callTestWrapper( testMethod );
            self._tearDownWrapper();
            PyTest.tracker.leaveTest( self._testDescription( testName ) );
        PyTest.tracker.leaveSuite( self._suiteDescription() );