mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
chore: enable lint PT009 'use regular assert over self.assert.*' (#30521)
This commit is contained in:
committed by
GitHub
parent
1f013055d2
commit
a849c29288
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user