gradio/client/python/test/test_serializing.py
Abubakar Abid 2a8c82de01
Documentation-related fixes to the python client (#3663)
* 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
2023-03-29 15:00:20 -07:00

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)