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
@@ -58,7 +58,7 @@ class TestPrestoValidator(SupersetTestCase):
|
||||
|
||||
errors = self.validator.validate(sql, None, schema, self.database)
|
||||
|
||||
self.assertEqual([], errors)
|
||||
assert [] == errors
|
||||
|
||||
@patch("superset.utils.core.g")
|
||||
def test_validator_db_error(self, flask_g):
|
||||
@@ -95,7 +95,7 @@ class TestPrestoValidator(SupersetTestCase):
|
||||
|
||||
errors = self.validator.validate(sql, None, schema, self.database)
|
||||
|
||||
self.assertEqual(1, len(errors))
|
||||
assert 1 == len(errors)
|
||||
|
||||
|
||||
class TestPostgreSQLValidator(SupersetTestCase):
|
||||
|
||||
Reference in New Issue
Block a user