Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split test/test_components.py into test/components/test_*.py #8218

Merged
merged 3 commits into from May 7, 2024

Conversation

whitphx
Copy link
Member

@whitphx whitphx commented May 6, 2024

Description

Refactoring, based on this context.

Closes: #8125

@gradio-pr-bot
Copy link
Contributor

gradio-pr-bot commented May 6, 2024

🪼 branch checks and previews

Name Status URL
Website building...
🦄 Changes detected! Details

@gradio-pr-bot
Copy link
Contributor

gradio-pr-bot commented May 6, 2024

🦄 no changes detected

This Pull Request does not include changes to any packages.

__No changes detected. __

  • Maintainers can select this checkbox to manually select packages to update.

Something isn't right?

  • Maintainers can change the version label to modify the version bump.
  • If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can create the changelog file directly.

@whitphx whitphx marked this pull request as ready for review May 6, 2024 04:18
Copy link
Member

@abidlabs abidlabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely. Thanks for taking care of this @whitphx!

@@ -0,0 +1,3 @@
import os
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already set in the pyproject.toml file

Copy link
Collaborator

@freddyaboulton freddyaboulton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @whitphx !

@whitphx
Copy link
Member Author

whitphx commented May 7, 2024

Added tests were run successfully.

https://github.com/gradio-app/gradio/actions/runs/8980681841/job/24664770460

test/components/test_annotated_image.py ....                             [ 82%]
test/components/test_audio.py ......                                     [ 83%]
test/components/test_bar_plot.py ......                                  [ 83%]
test/components/test_button.py .                                         [ 84%]
test/components/test_chatbot.py ..                                       [ 84%]
test/components/test_checkbox.py ..                                      [ 84%]
test/components/test_checkbox_group.py ..                                [ 84%]
test/components/test_code.py ..                                          [ 85%]
test/components/test_color_picker.py ....                                [ 85%]
test/components/test_dataframe.py .....                                  [ 86%]
test/components/test_dataset.py ...                                      [ 86%]
test/components/test_dropdown.py ..                                      [ 87%]
test/components/test_file.py .....                                       [ 87%]
test/components/test_file_explorer.py ..                                 [ 88%]
test/components/test_gallery.py ....                                     [ 88%]
test/components/test_highlighted_text.py ...                             [ 89%]
test/components/test_html.py ..                                          [ 89%]
test/components/test_image.py .....                                      [ 90%]
test/components/test_image_editor.py ..                                  [ 90%]
test/components/test_json.py .........                                   [ 91%]
test/components/test_label.py ...                                        [ 91%]
test/components/test_line_plot.py ......                                 [ 92%]
test/components/test_markdown.py ..                                      [ 93%]
test/components/test_model3d.py ..                                       [ 93%]
test/components/test_number.py .........                                 [ 94%]
test/components/test_plot.py ....                                        [ 95%]
test/components/test_radio.py ..                                         [ 95%]
test/components/test_scatter_plot.py .........                           [ 96%]
test/components/test_slider.py .....                                     [ 97%]
test/components/test_state.py ....                                       [ 97%]
test/components/test_textbox.py .......                                  [ 98%]
test/components/test_upload_button.py ...                                [ 99%]
test/components/test_video.py .....                                      [100%]

@whitphx whitphx merged commit 0493c66 into main May 7, 2024
7 checks passed
@whitphx whitphx deleted the split-component-tests branch May 7, 2024 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Refactoring] Split the test cases in test_components.py into separate test files
4 participants