mirror of
https://github.com/apache/superset.git
synced 2026-05-29 20:29:34 +00:00
test(reports): fix stale warning assertions after timeout message change
- Update assert_any_call in per-tile spinner timeout test to include the new (load_wait=%ss) suffix and value - Update assert_any_call in webdriver spinner timeout test to include the new (SCREENSHOT_LOAD_WAIT=%ss) suffix and value - Fix test_per_tile_non_timeout_exceptions: RuntimeError is caught by the outer take_tiled_screenshot handler and returns None, not re-raised; rename and update assertion to match actual behavior Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
committed by
Sophie
parent
8d7ffac945
commit
86d705dd01
@@ -753,8 +753,9 @@ class TestWebDriverPlaywrightErrorHandling:
|
||||
|
||||
assert exc_info.value is timeout
|
||||
mock_logger.warning.assert_any_call(
|
||||
"Timed out waiting for charts to load at url %s",
|
||||
"Timed out waiting for charts to load at url %s (SCREENSHOT_LOAD_WAIT=%ss)",
|
||||
"http://example.com",
|
||||
60,
|
||||
)
|
||||
|
||||
@patch("superset.utils.webdriver.PLAYWRIGHT_AVAILABLE", True)
|
||||
|
||||
Reference in New Issue
Block a user