gradio/test
2024-12-07 01:00:18 +00:00
..
components Tweak Chatbot bubble_full_width behaviour (#10132) 2024-12-07 01:00:18 +00:00
golden
test_files
tmp
__init__.py
conftest.py 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
README.md
requirements.in
requirements.txt Update devcontainers (#10146) 2024-12-06 10:08:36 -06:00
test_analytics.py 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
test_api_info.py 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
test_blocks.py Fixes #9742 (#9767) 2024-10-18 15:48:38 -07:00
test_buttons.py 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
test_chat_interface.py Fix chatbot/chatinterface type mismatch (#10080) 2024-12-01 12:11:43 -05:00
test_components.py
test_custom_component_compatibility.py
test_events.py 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
test_external.py 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
test_flagging.py 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
test_gradio_component_cli.py Add ability to read and write from LocalStorage (#9950) 2024-11-15 12:56:36 -08:00
test_helpers.py Fix lazy caching (#10124) 2024-12-04 16:00:28 -06:00
test_http_server.py
test_interfaces.py
test_networking.py 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
test_pipelines.py
test_processing_utils.py Use safehttpx.get() instead of async_get_with_secure_transport() (#9795) 2024-10-23 12:33:13 -07:00
test_queueing.py 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
test_reload.py 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
test_routes.py Enforce meta key present during preprocess in FileData payloads (#9898) 2024-11-04 15:00:27 -05:00
test_theme_sharing.py
test_tunneling.py
test_utils.py 9484-fix-windows-filepath-unit-tests (#10089) 2024-12-02 15:03:55 -05:00

Backend Testing Guidelines

  • All the tests should test Backend functionalities. Frontend functionalities and e2e tests are done in Frontend.
  • Make use of pytest fixtures whenever it is possible. With fixtures, objects with high initialize durations are reused within tests, ex. a client session.
  • All testdata resides within _gradio/test_data and all test_files reside within test/test_files.
  • When doing network operations do not forget to make use of async to make tests faster.
  • Have clear class and function naming within the tests.
  • Short descriptions within test functions are great.
  • Library function docstrings is expected to contain an example, please add missing docstrings to the library while you are writing tests the related function.
  • Library docstring examples and descriptions are expected to align with tests, please fix divergent tests and library docstrings.