mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-07 11:46:51 +08:00
* docstring * add documentation * added more serialization classes * format * info * is valid * formatting * changes * fixups * fix tests * machine readable * formatting * client * format * tweaks on printing * version * linting * fix tests * update pypi requirements * updates * type ignore' * fixes * formatting
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)
|