Add mock helper_startup
This commit is contained in:
parent
a5a56fe7f1
commit
c32f5cbcde
|
@ -42,6 +42,8 @@ from pybitmessage.bitmessagekivy.load_kivy_screens_data import load_screen_json
|
||||||
from pybitmessage.bitmessagekivy.baseclass.popup import AddAddressPopup
|
from pybitmessage.bitmessagekivy.baseclass.popup import AddAddressPopup
|
||||||
from pybitmessage.bitmessagekivy.baseclass.login import * # noqa: F401, F403
|
from pybitmessage.bitmessagekivy.baseclass.login import * # noqa: F401, F403
|
||||||
|
|
||||||
|
from pybitmessage.mock.helper_startup import loadConfig
|
||||||
|
|
||||||
logger = logging.getLogger('default')
|
logger = logging.getLogger('default')
|
||||||
|
|
||||||
|
|
||||||
|
@ -118,6 +120,7 @@ class NavigateApp(MDApp):
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
"""Running the widgets"""
|
"""Running the widgets"""
|
||||||
|
loadConfig()
|
||||||
self.kivy_state_obj.kivyui_ready.set()
|
self.kivy_state_obj.kivyui_ready.set()
|
||||||
super(NavigateApp, self).run()
|
super(NavigateApp, self).run()
|
||||||
|
|
||||||
|
|
7
src/mock/helper_startup.py
Normal file
7
src/mock/helper_startup.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import os
|
||||||
|
from pybitmessage.bmconfigparser import config
|
||||||
|
|
||||||
|
|
||||||
|
def loadConfig():
|
||||||
|
"""Loading mock test data"""
|
||||||
|
config.read(os.path.join(os.environ['BITMESSAGE_HOME'], 'keys.dat'))
|
Reference in New Issue
Block a user