← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #268299]: UnitTest stop a whole test suite

 

Question #268299 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268299

    Status: Open => Answered

Eugene S proposed the following answer:
Have a look at setupclass and teardownclass:

https://docs.python.org/2/library/unittest.html#setupclass-and-
teardownclass

which execute before and after the tests in a given class are run. 
Alternatively, if you have a group of them in one file, you can use setUpModule and tearDownModule

https://docs.python.org/2/library/unittest.html#setupmodule-and-
teardownmodule

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.