mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-13 19:21:50 +02:00
fix(plugin_utils): plugin utils are able to detect classes for plugin creation based on class attribute rather than if it is top level widget
This commit is contained in:
@ -43,7 +43,7 @@ def test_client_generator_with_black_formatting():
|
||||
obj=MockBECWaveform1D,
|
||||
is_connector=True,
|
||||
is_widget=True,
|
||||
is_top_level=False,
|
||||
is_plugin=False,
|
||||
)
|
||||
)
|
||||
container.add_class(
|
||||
@ -54,7 +54,7 @@ def test_client_generator_with_black_formatting():
|
||||
obj=MockBECFigure,
|
||||
is_connector=True,
|
||||
is_widget=True,
|
||||
is_top_level=True,
|
||||
is_plugin=True,
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
from bec_widgets.utils.plugin_utils import get_rpc_classes
|
||||
from bec_widgets.utils.plugin_utils import get_custom_classes
|
||||
|
||||
|
||||
def test_client_generator_classes():
|
||||
out = get_rpc_classes("bec_widgets")
|
||||
out = get_custom_classes("bec_widgets")
|
||||
connector_cls_names = [cls.__name__ for cls in out.connector_classes]
|
||||
top_level_cls_names = [cls.__name__ for cls in out.top_level_classes]
|
||||
|
||||
|
Reference in New Issue
Block a user