mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +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
@@ -46,8 +46,8 @@ class TestSchema(SupersetTestCase):
|
||||
payload["queries"][0]["row_offset"] = -1
|
||||
with self.assertRaises(ValidationError) as context:
|
||||
_ = ChartDataQueryContextSchema().load(payload)
|
||||
self.assertIn("row_limit", context.exception.messages["queries"][0])
|
||||
self.assertIn("row_offset", context.exception.messages["queries"][0])
|
||||
assert "row_limit" in context.exception.messages["queries"][0]
|
||||
assert "row_offset" in context.exception.messages["queries"][0]
|
||||
|
||||
@pytest.mark.usefixtures("load_birth_names_dashboard_with_slices")
|
||||
def test_query_context_null_timegrain(self):
|
||||
|
||||
Reference in New Issue
Block a user