mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
[ci] Deprecate flake8 (#8409)
* [ci] Deprecate flake8 * Addressing @villebro's comments
This commit is contained in:
committed by
Maxime Beauchemin
parent
a19990185d
commit
9fc37ea9f1
@@ -27,6 +27,7 @@ from superset.sql_validators.presto_db import (
|
||||
PrestoDBSQLValidator,
|
||||
PrestoSQLValidationError,
|
||||
)
|
||||
|
||||
from .base_tests import SupersetTestCase
|
||||
|
||||
PRESTO_TEST_FEATURE_FLAGS = {
|
||||
@@ -119,7 +120,7 @@ class PrestoValidatorTests(SupersetTestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.validator = PrestoDBSQLValidator
|
||||
self.database = MagicMock() # noqa
|
||||
self.database = MagicMock()
|
||||
self.database_engine = self.database.get_sqla_engine.return_value
|
||||
self.database_conn = self.database_engine.raw_connection.return_value
|
||||
self.database_cursor = self.database_conn.cursor.return_value
|
||||
|
||||
Reference in New Issue
Block a user