Rename mockpb dir to mockbm
This commit is contained in:
parent
563e557b1b
commit
b8749c6d7c
|
@ -203,7 +203,7 @@ autodoc_mock_imports = [
|
||||||
'pybitmessage.bitmessagekivy',
|
'pybitmessage.bitmessagekivy',
|
||||||
'pybitmessage.bitmessageqt.foldertree',
|
'pybitmessage.bitmessageqt.foldertree',
|
||||||
'pybitmessage.helper_startup',
|
'pybitmessage.helper_startup',
|
||||||
'pybitmessage.mockpb',
|
'pybitmessage.mockbm',
|
||||||
'pybitmessage.network.httpd',
|
'pybitmessage.network.httpd',
|
||||||
'pybitmessage.network.https',
|
'pybitmessage.network.https',
|
||||||
'ctypes',
|
'ctypes',
|
||||||
|
@ -232,7 +232,7 @@ apidoc_excluded_paths = [
|
||||||
'bitmessageqt/addressvalidator.py', 'bitmessageqt/foldertree.py',
|
'bitmessageqt/addressvalidator.py', 'bitmessageqt/foldertree.py',
|
||||||
'bitmessageqt/migrationwizard.py', 'bitmessageqt/newaddresswizard.py',
|
'bitmessageqt/migrationwizard.py', 'bitmessageqt/newaddresswizard.py',
|
||||||
'helper_startup.py',
|
'helper_startup.py',
|
||||||
'kivymd', 'mockpb', 'main.py', 'navigationdrawer', 'network/http*',
|
'kivymd', 'mockbm', 'main.py', 'navigationdrawer', 'network/http*',
|
||||||
'src', 'tests', 'version.py'
|
'src', 'tests', 'version.py'
|
||||||
]
|
]
|
||||||
apidoc_module_first = True
|
apidoc_module_first = True
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -92,7 +92,7 @@ if __name__ == "__main__":
|
||||||
)
|
)
|
||||||
|
|
||||||
if os.environ.get('INSTALL_TESTS', False):
|
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'])
|
package_data[''].extend(['bitmessagekivy/tests/sampleData/*.dat'])
|
||||||
|
|
||||||
# this will silently accept alternative providers of msgpack
|
# this will silently accept alternative providers of msgpack
|
||||||
|
|
|
@ -14,7 +14,7 @@ from kivy.uix.screenmanager import Screen
|
||||||
from pybitmessage import state
|
from pybitmessage import state
|
||||||
|
|
||||||
if os.environ.get('INSTALL_TESTS', False) and not state.backend_py3_compatible:
|
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
|
stats = kivy_main.network.stats
|
||||||
objectracker = kivy_main.network.objectracker
|
objectracker = kivy_main.network.objectracker
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -45,7 +45,7 @@ from pybitmessage.bitmessagekivy.baseclass.popup import (
|
||||||
from pybitmessage.bitmessagekivy.baseclass.login import * # noqa: F401, F403
|
from pybitmessage.bitmessagekivy.baseclass.login import * # noqa: F401, F403
|
||||||
from pybitmessage.bitmessagekivy.uikivysignaler import UIkivySignaler
|
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')
|
logger = logging.getLogger('default')
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ def cleanup(files=_files):
|
||||||
|
|
||||||
class TeleniumTestProcess(TeleniumTestCase):
|
class TeleniumTestProcess(TeleniumTestCase):
|
||||||
"""Setting Screen Functionality Testing"""
|
"""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
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from kivy.config import Config
|
from kivy.config import Config
|
||||||
from pybitmessage.mockpb import multiqueue
|
from pybitmessage.mockbm import multiqueue
|
||||||
from pybitmessage import state
|
from pybitmessage import state
|
||||||
|
|
||||||
if os.environ.get("INSTALL_TESTS", False):
|
if os.environ.get("INSTALL_TESTS", False):
|
||||||
|
@ -16,9 +16,9 @@ if os.environ.get("INSTALL_TESTS", False):
|
||||||
Config.set("graphics", "left", 0)
|
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.bitmessagekivy.mpybit import NavigateApp # noqa:E402
|
||||||
from pybitmessage.mockpb import network # noqa:E402
|
from pybitmessage.mockbm import network # noqa:E402
|
||||||
|
|
||||||
stats = network.stats
|
stats = network.stats
|
||||||
objectracker = network.objectracker
|
objectracker = network.objectracker
|
|
@ -24,7 +24,7 @@ class TestPartialRun(unittest.TestCase):
|
||||||
from debug import logger # noqa:F401 pylint: disable=unused-variable
|
from debug import logger # noqa:F401 pylint: disable=unused-variable
|
||||||
if sys.hexversion >= 0x3000000:
|
if sys.hexversion >= 0x3000000:
|
||||||
# pylint: disable=no-name-in-module,relative-import
|
# pylint: disable=no-name-in-module,relative-import
|
||||||
from mockpb import network as network_mock
|
from mockbm import network as network_mock
|
||||||
import network
|
import network
|
||||||
network.stats = network_mock.stats
|
network.stats = network_mock.stats
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user