Rename mockpb dir to mockbm

This commit is contained in:
anand-skss 2024-03-22 08:52:02 +00:00 committed by GitHub
parent 563e557b1b
commit b8749c6d7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
27 changed files with 10 additions and 10 deletions

View File

@ -203,7 +203,7 @@ autodoc_mock_imports = [
'pybitmessage.bitmessagekivy',
'pybitmessage.bitmessageqt.foldertree',
'pybitmessage.helper_startup',
'pybitmessage.mockpb',
'pybitmessage.mockbm',
'pybitmessage.network.httpd',
'pybitmessage.network.https',
'ctypes',
@ -232,7 +232,7 @@ apidoc_excluded_paths = [
'bitmessageqt/addressvalidator.py', 'bitmessageqt/foldertree.py',
'bitmessageqt/migrationwizard.py', 'bitmessageqt/newaddresswizard.py',
'helper_startup.py',
'kivymd', 'mockpb', 'main.py', 'navigationdrawer', 'network/http*',
'kivymd', 'mockbm', 'main.py', 'navigationdrawer', 'network/http*',
'src', 'tests', 'version.py'
]
apidoc_module_first = True

View File

@ -92,7 +92,7 @@ if __name__ == "__main__":
)
if os.environ.get('INSTALL_TESTS', False):
packages.extend(['pybitmessage.mockpb', 'pybitmessage.backend', 'pybitmessage.bitmessagekivy.tests'])
packages.extend(['pybitmessage.mockbm', 'pybitmessage.backend', 'pybitmessage.bitmessagekivy.tests'])
package_data[''].extend(['bitmessagekivy/tests/sampleData/*.dat'])
# this will silently accept alternative providers of msgpack

View File

@ -14,7 +14,7 @@ from kivy.uix.screenmanager import Screen
from pybitmessage import state
if os.environ.get('INSTALL_TESTS', False) and not state.backend_py3_compatible:
from pybitmessage.mockpb import kivy_main
from pybitmessage.mockbm import kivy_main
stats = kivy_main.network.stats
objectracker = kivy_main.network.objectracker
else:

View File

@ -45,7 +45,7 @@ from pybitmessage.bitmessagekivy.baseclass.popup import (
from pybitmessage.bitmessagekivy.baseclass.login import * # noqa: F401, F403
from pybitmessage.bitmessagekivy.uikivysignaler import UIkivySignaler
from pybitmessage.mockpb.helper_startup import loadConfig, total_encrypted_messages_per_month
from pybitmessage.mockbm.helper_startup import loadConfig, total_encrypted_messages_per_month
logger = logging.getLogger('default')

View File

@ -32,7 +32,7 @@ def cleanup(files=_files):
class TeleniumTestProcess(TeleniumTestCase):
"""Setting Screen Functionality Testing"""
cmd_entrypoint = [os.path.join(os.path.abspath(os.getcwd()), 'src', 'mockpb', 'kivy_main.py')]
cmd_entrypoint = [os.path.join(os.path.abspath(os.getcwd()), 'src', 'mockbm', 'kivy_main.py')]
@classmethod
def setUpClass(cls):

View File

@ -5,7 +5,7 @@
import os
from kivy.config import Config
from pybitmessage.mockpb import multiqueue
from pybitmessage.mockbm import multiqueue
from pybitmessage import state
if os.environ.get("INSTALL_TESTS", False):
@ -16,9 +16,9 @@ if os.environ.get("INSTALL_TESTS", False):
Config.set("graphics", "left", 0)
from pybitmessage.mockpb.class_addressGenerator import FakeAddressGenerator # noqa:E402
from pybitmessage.mockbm.class_addressGenerator import FakeAddressGenerator # noqa:E402
from pybitmessage.bitmessagekivy.mpybit import NavigateApp # noqa:E402
from pybitmessage.mockpb import network # noqa:E402
from pybitmessage.mockbm import network # noqa:E402
stats = network.stats
objectracker = network.objectracker

View File

@ -24,7 +24,7 @@ class TestPartialRun(unittest.TestCase):
from debug import logger # noqa:F401 pylint: disable=unused-variable
if sys.hexversion >= 0x3000000:
# pylint: disable=no-name-in-module,relative-import
from mockpb import network as network_mock
from mockbm import network as network_mock
import network
network.stats = network_mock.stats