From c32f5cbcde122f48a08a0c40602fe19817864eb3 Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Wed, 9 Nov 2022 13:22:13 +0530 Subject: [PATCH] Add mock helper_startup --- src/bitmessagekivy/mpybit.py | 3 +++ src/mock/helper_startup.py | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 src/mock/helper_startup.py diff --git a/src/bitmessagekivy/mpybit.py b/src/bitmessagekivy/mpybit.py index e303156a..078da423 100644 --- a/src/bitmessagekivy/mpybit.py +++ b/src/bitmessagekivy/mpybit.py @@ -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() diff --git a/src/mock/helper_startup.py b/src/mock/helper_startup.py new file mode 100644 index 00000000..0b0ca939 --- /dev/null +++ b/src/mock/helper_startup.py @@ -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'))