Import sikuli from unit test
Hi!
I know this is a common subject on FAQ, but I cannot get this to work.
I have read through the following links (and more) thoroughly:
http://
https:/
https:/
https:/
https:/
https:/
I am trying to call an imported function from within a unit test. Is this possible?
My code looks like this:
Unit test
==========
myLib = "C:\\Users\
if not myLib in sys.path: sys.path.
import tools
from tools import *
def setUp(self):
print "open"
def tearDown(self):
print "close"
def testA(self):
foobar()
return True
Imported tool doc
================
from sikuli.Sikuli import *
def foobar():
pass
I am not very familiar with unit testing or the usage of "self", so I have tried varied forms of this. Like, for instance,
def testA(self):
return True
I only get imports to work if I don't use unit testing.
I'm sorry to post yet another question on this subject, but I have honestly been trying everything I could think of, and I can not make this work.
Best regards
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Elisabeth Svensson
- Solved:
- Last query:
- Last reply: