Added mock code #1883

Open
kdcis wants to merge 10 commits from kdcis/mock-test into v0.6
3 changed files with 4 additions and 3 deletions
Showing only changes of commit c5dee5f22e - Show all commits

View File

@ -1,2 +1,3 @@
PeterSurda commented 2021-12-13 06:46:41 +01:00 (Migrated from github.com)
Review

here it can start launching the mock threads.

here it can start launching the mock threads.
PeterSurda commented 2021-12-13 06:46:41 +01:00 (Migrated from github.com)
Review

here it can start launching the mock threads.

here it can start launching the mock threads.
def main(): def main():
pass """Mock main function"""
PeterSurda commented 2021-12-13 06:46:41 +01:00 (Migrated from github.com)
Review

here it can start launching the mock threads.

here it can start launching the mock threads.
PeterSurda commented 2021-12-13 06:46:41 +01:00 (Migrated from github.com)
Review

here it can start launching the mock threads.

here it can start launching the mock threads.
pass
PeterSurda commented 2021-12-13 06:46:41 +01:00 (Migrated from github.com)
Review

here it can start launching the mock threads.

here it can start launching the mock threads.

PeterSurda commented 2021-12-13 06:46:41 +01:00 (Migrated from github.com)
Review

here it can start launching the mock threads.

here it can start launching the mock threads.
PeterSurda commented 2021-12-13 06:46:41 +01:00 (Migrated from github.com)
Review

here it can start launching the mock threads.

here it can start launching the mock threads.

View File

@ -3,6 +3,7 @@
# TODO make this dynamic, and watch out for frozen, like with messagetypes # TODO make this dynamic, and watch out for frozen, like with messagetypes
from singleton import Singleton from singleton import Singleton
# pylint: disable=old-style-class,too-few-public-methods # pylint: disable=old-style-class,too-few-public-methods
@Singleton @Singleton
class MockInventory(): class MockInventory():

View File

@ -3,12 +3,11 @@
""" """
import logging import logging
import asyncore_pollchoose as asyncore
from bmconfigparser import BMConfigParser
from singleton import Singleton from singleton import Singleton
logger = logging.getLogger('default') logger = logging.getLogger('default')
# pylint: disable=too-few-public-methods # pylint: disable=too-few-public-methods
@Singleton @Singleton
class MockBMConnectionPool(object): class MockBMConnectionPool(object):