more complexity in the test cases
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from appdaemon.adapi import ADAPI
|
||||
|
||||
from .utils import UTILS_VALS
|
||||
|
||||
|
||||
raise ImportError('Fake import error')
|
||||
|
||||
class Child(ADAPI):
|
||||
def initialize(self):
|
||||
self.log(f'Initialized child with: {UTILS_VALS}')
|
||||
@@ -0,0 +1,7 @@
|
||||
parent:
|
||||
module: family.parent
|
||||
class: Parent
|
||||
|
||||
child:
|
||||
module: family.child
|
||||
class: Child
|
||||
@@ -0,0 +1,8 @@
|
||||
from appdaemon.adapi import ADAPI
|
||||
|
||||
from .utils import UTILS_VALS
|
||||
|
||||
|
||||
class Parent(ADAPI):
|
||||
def initialize(self):
|
||||
self.log(f'Initialized parent with: {UTILS_VALS}')
|
||||
@@ -0,0 +1 @@
|
||||
OTHER_CITY = 'NYC again'
|
||||
@@ -0,0 +1,3 @@
|
||||
from .relatives.city import OTHER_CITY
|
||||
|
||||
UTILS_VALS = 100, 600
|
||||
Reference in New Issue
Block a user