WIP: Added mock code #1883

Draft
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():
"""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.
pass

View File

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

View File

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