Skip to content

Commit

Permalink
[flake8] Resolving F4?? errors (#3811)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored and mistercrunch committed Nov 9, 2017
1 parent ec21d5a commit d03b74f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion tests/celery_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from past.builtins import basestring

from superset import app, appbuilder, cli, dataframe, db
from superset.models import core as models
from superset.models.helpers import QueryStatus
from superset.models.sql_lab import Query
from superset.security import sync_role_definitions
Expand Down
7 changes: 3 additions & 4 deletions tests/druid_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

from superset import db, security, sm
from superset.connectors.druid.models import (
DruidCluster, DruidDatasource, DruidMetric, Postaggregator, PyDruid,
Quantile,
DruidCluster, DruidDatasource, DruidMetric,
)
from .base_tests import SupersetTestCase

Expand Down Expand Up @@ -75,7 +74,7 @@ class DruidTests(SupersetTestCase):
def __init__(self, *args, **kwargs):
super(DruidTests, self).__init__(*args, **kwargs)

@patch('superset.connectors.druid.models.PyDruid') # noqa ignore: F811
@patch('superset.connectors.druid.models.PyDruid')
def test_client(self, PyDruid):
self.login(username='admin')
instance = PyDruid.return_value
Expand Down Expand Up @@ -280,7 +279,7 @@ def test_filter_druid_datasource(self):
self.assertIn('datasource_for_gamma', resp)
self.assertNotIn('datasource_not_for_gamma', resp)

@patch('superset.connectors.druid.models.PyDruid') # noqa ignore: F811
@patch('superset.connectors.druid.models.PyDruid')
def test_sync_druid_perm(self, PyDruid):
self.login(username='admin')
instance = PyDruid.return_value
Expand Down
1 change: 1 addition & 0 deletions tests/superset_test_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# flake8: noqa
from superset.config import *

AUTH_USER_REGISTRATION_ROLE = 'alpha'
Expand Down
3 changes: 2 additions & 1 deletion tests/viz_tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime, timedelta
from datetime import datetime
import unittest

from mock import Mock, patch
Expand All @@ -8,6 +8,7 @@
from superset.utils import DTTM_ALIAS
import superset.viz as viz


class BaseVizTestCase(unittest.TestCase):
def test_constructor_exception_no_datasource(self):
form_data = {}
Expand Down
3 changes: 0 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ ignore =
E703
E731
E741
F401
F403
F405
Q000
Q001
import-order-style = google
Expand Down

0 comments on commit d03b74f

Please sign in to comment.