gradio/test
Abubakar Abid d4e3a51890
Allows setting parameters of gr.ChatInterface's Accordion (#6518)
* Chat Interface Accordion

* add changeset

* typing

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-21 10:58:53 -08:00
..
golden updated test images 2022-03-17 10:45:48 -07:00
test_files fix ci (#6235) 2023-11-01 19:37:36 +00:00
tmp End-to-end UI tests with Selenium (#72) 2020-10-23 18:28:30 +04:00
__init__.py blocks-components-tests 2022-03-30 13:08:34 +03:00
conftest.py Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
README.md Refactor component directories (#5074) 2023-08-03 23:01:18 +01:00
requirements.in Processes avatar_images for gr.Chatbot and icon for gr.Button correctly, so that respective files are moved to cache (#6379) 2023-11-11 23:13:27 -08:00
requirements.txt Processes avatar_images for gr.Chatbot and icon for gr.Button correctly, so that respective files are moved to cache (#6379) 2023-11-11 23:13:27 -08:00
test_analytics.py Lite: Fix the analytics module to use asyncio to work in the Wasm env (#5045) 2023-08-04 09:18:14 -04:00
test_api_info.py Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
test_blocks.py Fix component update bug (#6368) 2023-11-10 12:26:07 -08:00
test_buttons.py Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
test_chat_interface.py Allows setting parameters of gr.ChatInterface's Accordion (#6518) 2023-11-21 10:58:53 -08:00
test_components.py Processes avatar_images for gr.Chatbot and icon for gr.Button correctly, so that respective files are moved to cache (#6379) 2023-11-11 23:13:27 -08:00
test_custom_component_compatibility.py Processes avatar_images for gr.Chatbot and icon for gr.Button correctly, so that respective files are moved to cache (#6379) 2023-11-11 23:13:27 -08:00
test_events.py Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
test_external.py Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
test_flagging.py fix: avoid unnecessary folders creation when flagging (#6245) 2023-11-02 12:28:38 -07:00
test_gradio_component_cli.py Custom Component CLI Improvements (#6436) 2023-11-16 13:23:50 -05:00
test_helpers.py Fix updating interactive prop (#6266) 2023-11-02 16:35:27 -07:00
test_interfaces.py fix regarding callable function error (#6294) 2023-11-06 12:12:28 -08:00
test_networking.py Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
test_pipelines.py Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
test_processing_utils.py Gallery preview fix and optionally skip download of urls in postprcess (#6288) 2023-11-03 18:39:25 -04:00
test_queueing.py Allow setting a default_concurrency_limit other than 1 (#6439) 2023-11-16 12:42:49 -08:00
test_reload.py Fix SourceFileReloader to watch the module with a qualified name to avoid importing a module with the same name from a different path (#6497) 2023-11-20 13:54:26 -05:00
test_routes.py Hide show API link when in gradio lite (#6320) 2023-11-07 17:49:34 +01:00
test_theme_sharing.py Temporary fix to be able to load themes from Hub (#6311) 2023-11-06 15:40:08 -08:00
test_tunneling.py Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
test_utils.py Extract video filenames correctly from URLs (#6428) 2023-11-15 22:36:39 -08: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 resides 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.