mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: enforce more ruff rules (#31447)
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9da65d6bfd
commit
e51b95ffa8
@@ -151,7 +151,7 @@ class TestAsyncQueries(SupersetTestCase):
|
||||
}
|
||||
errors = ["A timeout occurred while loading chart data"]
|
||||
|
||||
with pytest.raises(SoftTimeLimitExceeded):
|
||||
with pytest.raises(SoftTimeLimitExceeded): # noqa: PT012
|
||||
with mock.patch(
|
||||
"superset.tasks.async_queries.set_form_data"
|
||||
) as set_form_data:
|
||||
@@ -270,7 +270,7 @@ class TestAsyncQueries(SupersetTestCase):
|
||||
}
|
||||
errors = ["A timeout occurred while loading explore JSON data"]
|
||||
|
||||
with pytest.raises(SoftTimeLimitExceeded):
|
||||
with pytest.raises(SoftTimeLimitExceeded): # noqa: PT012
|
||||
with mock.patch(
|
||||
"superset.tasks.async_queries.set_form_data"
|
||||
) as set_form_data:
|
||||
|
||||
Reference in New Issue
Block a user