gradio/test
Freddy Boulton ed546f2e13
Fix Model3D template (#6326)
* Add test

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-07 15:06:09 -08:00
..
golden
test_files fix ci (#6235) 2023-11-01 19:37:36 +00:00
tmp
__init__.py
conftest.py Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
README.md
requirements.in Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
requirements.txt Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
test_analytics.py
test_api_info.py Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
test_blocks.py Fix updating choices in gr.Dropdown and updates related to other components (#6309) 2023-11-07 04:16:29 -08:00
test_buttons.py Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
test_chat_interface.py Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
test_components.py Fix sources list order in test_components.py (#6321) 2023-11-07 17:22:42 +01: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 Fix Model3D template (#6326) 2023-11-07 15:06:09 -08: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 Queue concurrency count (#6172) 2023-10-31 02:41:19 -07:00
test_reload.py Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
test_route_utils.py Fix gr.SelectData so that the target attribute is correctly attached, and the filedata is included in the data attribute with gr.Gallery (#5798) 2023-10-05 12:53:52 -07: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 Assert refactor in external.py (#5811) 2023-10-06 18:14:14 -07: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.