mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-07 11:46:51 +08:00
12 lines
428 B
Python
12 lines
428 B
Python
|
from gradio import components
|
||
|
|
||
|
from gradio_client.serializing import COMPONENT_MAPPING
|
||
|
|
||
|
|
||
|
def test_check_component_fallback_serializers():
|
||
|
for component_name, class_type in COMPONENT_MAPPING.items():
|
||
|
if component_name == "dataset": # cannot be instantiated without parameters
|
||
|
continue
|
||
|
component = components.get_component_instance(component_name)
|
||
|
assert isinstance(component, class_type)
|