do not registery fake component in real component registry

This commit is contained in:
Lex Berezhny 2019-12-15 02:06:04 -05:00
parent 46c6588aa1
commit b07bc150e1

View file

@ -9,7 +9,7 @@ log = logging.getLogger(__name__)
class ComponentType(type):
def __new__(mcs, name, bases, newattrs):
klass = type.__new__(mcs, name, bases, newattrs)
if name != "Component":
if name != "Component" and newattrs['__module__'] != 'lbry.testcase':
ComponentManager.default_component_classes[klass.component_name] = klass
return klass