Engine.py will import several classes as self object
Engine.py
from api import api
from cloud import cloud
class Engine(object):
def __init__(self, env):
session = dict()
self.api = api.API(session)
self.cloud= cloud.CLOUD(session)
api.py
class API(object):
def __init__(self, session):
self.session = session
def api_keyword(self):
return SOMETHING
My question is :
How can I use the keyword under api.py and cloud.py and ONLY import Engine.py into robot file
test.robot
*** Settings ***
Library Engine.py ${env}
*** Test Cases ***
python class test
[Tags] class
Engine.api.api_keyword
And I got error message:
No keyword with name 'Engine.api.api_keyword' found.
Engine.py?