Rename mockpb dir to mockbm
This commit is contained in:
parent
563e557b1b
commit
b8749c6d7c
|
@ -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
|
||||
|
|
2
setup.py
2
setup.py
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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')
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
||||
|
|
Reference in New Issue
Block a user