fix: loading examples from raw.githubusercontent.com fails with 429 errors (#33354)

This commit is contained in:
Maxime Beauchemin
2025-05-05 04:07:23 -07:00
committed by GitHub
parent 7791674f24
commit f045a73e2d
2 changed files with 60 additions and 11 deletions

View File

@@ -21,7 +21,7 @@ from tests.unit_tests.migrations.viz.utils import migrate_and_assert
SOURCE_FORM_DATA: dict[str, Any] = {
"granularity_sqla": "ds",
"time_range": "100 years ago : today",
"time_range": "1925-04-24 : 2025-04-24",
"viz_type": "pivot_table",
}
@@ -29,7 +29,7 @@ TARGET_FORM_DATA: dict[str, Any] = {
"form_data_bak": SOURCE_FORM_DATA,
"granularity_sqla": "ds",
"rowOrder": "value_z_to_a",
"time_range": "100 years ago : today",
"time_range": "1925-04-24 : 2025-04-24",
"viz_type": "pivot_table_v2",
}
@@ -40,7 +40,7 @@ def test_migration() -> None:
target["adhoc_filters"] = [
{
"clause": "WHERE",
"comparator": "100 years ago : today",
"comparator": "1925-04-24 : 2025-04-24",
"expressionType": "SIMPLE",
"operator": "TEMPORAL_RANGE",
"subject": "ds",