sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #14702
Re: [Question #214808]: assertion in setUp
Question #214808 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214808
Status: Open => Answered
RaiMan proposed the following answer:
This is a feature of unittest (if setup fails, testcases and teardown
are not processed).
The solution is, to check this first in the testcase, so that teardown
is run if it fails.
You might use a class variable, that is set to true or false in setup
and then in the test case:
assert everythingok
as the first statement.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.