Skip to content

Conversation

@ndonkoHenri
Copy link
Contributor

@ndonkoHenri ndonkoHenri commented Nov 21, 2025

Summary by Sourcery

Align file names, docs references, and visual regression tests with updated naming conventions across the Python SDK and examples.

Build:

  • Update the gallery publish script to use the new routing/navigation example filename.

Documentation:

  • Update authentication and navigation cookbook links to point to renamed example files and scripts.
  • Adjust Solitaire tutorial references to reflect recent control/file renamings.

Tests:

  • Rename many material control integration tests and their screenshot baselines to a consistent, shorter naming scheme.
  • Simplify screenshot capture in data table theme tests to use full-page screenshots instead of control-level screenshots.
  • Fix ListTile integration tests to use the explicit controls parameter for Column construction.

# Conflicts:
#	sdk/python/packages/flet/integration_tests/controls/material/golden/macos/reorderable_list_view/basic.png
#	sdk/python/packages/flet/integration_tests/controls/material/golden/macos/snack_bar/basic.png
#	sdk/python/packages/flet/integration_tests/controls/material/golden/macos/time_picker/basic.png
#	sdk/python/packages/flet/integration_tests/controls/material/test_reorderable_list_view.py
#	sdk/python/packages/flet/integration_tests/controls/material/test_snack_bar.py
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We've reviewed this pull request using the Sourcery rules engine

Copilot finished reviewing on behalf of ndonkoHenri November 21, 2025 13:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors test function names across integration test files to follow a more consistent naming convention, removing redundant prefixes that duplicate the module/file name. The changes also update screenshot references to use request.node.name for dynamic naming and make minor code formatting improvements.

Key Changes:

  • Test function names simplified by removing redundant prefixes (e.g., test_date_picker_basictest_basic)
  • Screenshot references updated to use request.node.name for dynamic naming
  • Minor code formatting improvements (e.g., using controls= keyword argument)
  • Addition of corresponding golden reference image files

Reviewed Changes

Copilot reviewed 30 out of 99 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test_date_picker_theme.py Renamed test function from test_date_picker_theme to test_theme_1 and updated screenshot reference
test_vertical_divider.py Renamed test functions to test_basic and test_properties, updated screenshot references
test_textfield.py Renamed tests removing "with_" prefix (e.g., test_with_labeltest_label)
test_text_button.py Renamed test_text_button_basic to test_basic
test_submenu_button.py Renamed test_submenu_button_basic to test_basic
test_range_slider.py Renamed test_range_slider to test_basic
test_outlined_button.py Renamed test_outlined_button_basic to test_basic
test_menu_bar.py Updated screenshot references from full names to "basic" and "basic_open"
test_list_view.py Renamed tests removing "list_view_" prefix
test_list_tile.py Updated to use controls= keyword argument for better readability
test_grid_view.py Renamed tests removing "grid_view_" prefix
test_filled_tonal_button.py Renamed test_filled_tonal_button_basic to test_basic
test_filled_button.py Renamed test_filled_button_basic to test_basic
test_expansion_panel_list.py Renamed test_expansion_panel_list_basic to test_basic
test_divider.py Renamed test_divider_radius to test_radius
test_date_picker.py Renamed test_date_picker_basic to test_basic, updated screenshot reference
test_data_table.py Refactored to use page-level screenshots instead of Screenshot control
test_circle_avatar.py Renamed tests and improved code formatting
test_chip.py Renamed tests removing "chip_" prefix, updated screenshot references
test_card.py Renamed test_card_basic to test_basic, improved formatting
test_button.py Renamed tests removing "button_" prefix
test_bottom_app_bar.py Renamed test_bottom_app_bar to test_basic
test_banner.py Renamed tests removing "banner_" prefix, updated screenshot references
test_app_bar.py Renamed test_app_bar to test_basic
test_alert_dialog.py Renamed test_alert_dialog_basic to test_basic, minor formatting fix
golden/*.png Added reference images for renamed tests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 21, 2025

Deploying flet-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: ade50c0
Status: ✅  Deploy successful!
Preview URL: https://19275c28.flet-docs.pages.dev
Branch Preview URL: https://renamings.flet-docs.pages.dev

View logs

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.

2 participants