more complexity in the test cases
This commit is contained in:
0
apps/family/__init__.py
Normal file
0
apps/family/__init__.py
Normal file
10
apps/family/child.py
Normal file
10
apps/family/child.py
Normal file
@@ -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}')
|
||||
7
apps/family/family.yaml
Normal file
7
apps/family/family.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
parent:
|
||||
module: family.parent
|
||||
class: Parent
|
||||
|
||||
child:
|
||||
module: family.child
|
||||
class: Child
|
||||
8
apps/family/parent.py
Normal file
8
apps/family/parent.py
Normal file
@@ -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
apps/family/relatives/__init__.py
Normal file
0
apps/family/relatives/__init__.py
Normal file
1
apps/family/relatives/city.py
Normal file
1
apps/family/relatives/city.py
Normal file
@@ -0,0 +1 @@
|
||||
OTHER_CITY = 'NYC again'
|
||||
3
apps/family/utils.py
Normal file
3
apps/family/utils.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from .relatives.city import OTHER_CITY
|
||||
|
||||
UTILS_VALS = 100, 600
|
||||
Reference in New Issue
Block a user