Skip to content

Commit

Permalink
Add typing to test func
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Apr 23, 2020
1 parent 875a1e3 commit 0377c33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/base_tests.py
Expand Up @@ -29,6 +29,7 @@

from tests.test_app import app # isort:skip
from superset import db, security_manager
from superset.connectors.base.models import BaseDatasource
from superset.connectors.druid.models import DruidCluster, DruidDatasource
from superset.connectors.sqla.models import SqlaTable
from superset.models import core as models
Expand Down Expand Up @@ -147,7 +148,7 @@ def get_druid_ds_by_name(name: str) -> DruidDatasource:
return db.session.query(DruidDatasource).filter_by(datasource_name=name).first()

@staticmethod
def get_datasource_mock():
def get_datasource_mock() -> BaseDatasource:
datasource = Mock()
results = Mock()
results.query = Mock()
Expand Down

0 comments on commit 0377c33

Please sign in to comment.