Add mock helper_startup

This commit is contained in:
shekhar-cis 2022-11-09 13:22:13 +05:30
parent a5a56fe7f1
commit c32f5cbcde
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7
2 changed files with 10 additions and 0 deletions

View File

@ -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.login import * # noqa: F401, F403
from pybitmessage.mock.helper_startup import loadConfig
logger = logging.getLogger('default')
@ -118,6 +120,7 @@ class NavigateApp(MDApp):
def run(self):
"""Running the widgets"""
loadConfig()
self.kivy_state_obj.kivyui_ready.set()
super(NavigateApp, self).run()

View 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'))