chore: enable lint PT009 'use regular assert over self.assert.*' (#30521)

This commit is contained in:
Maxime Beauchemin
2024-10-07 13:17:27 -07:00
committed by GitHub
parent 1f013055d2
commit a849c29288
62 changed files with 2218 additions and 2422 deletions

View File

@@ -424,15 +424,19 @@ class TestChartWarmUpCacheCommand(SupersetTestCase):
def test_warm_up_cache(self):
slc = self.get_slice("Top 10 Girl Name Share")
result = ChartWarmUpCacheCommand(slc.id, None, None).run()
self.assertEqual(
result, {"chart_id": slc.id, "viz_error": None, "viz_status": "success"}
)
assert result == {
"chart_id": slc.id,
"viz_error": None,
"viz_status": "success",
}
# can just pass in chart as well
result = ChartWarmUpCacheCommand(slc, None, None).run()
self.assertEqual(
result, {"chart_id": slc.id, "viz_error": None, "viz_status": "success"}
)
assert result == {
"chart_id": slc.id,
"viz_error": None,
"viz_status": "success",
}
class TestFavoriteChartCommand(SupersetTestCase):