forked from LBRYCommunity/lbry-sdk
do not registery fake component in real component registry
This commit is contained in:
parent
46c6588aa1
commit
b07bc150e1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue