Skip to content

Commit

Permalink
Move files
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Mar 21, 2022
1 parent c5a0f7f commit e9a39a8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion superset/initialization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def init_views(self) -> None:
from superset.datasets.metrics.api import DatasetMetricRestApi
from superset.explore.form_data.api import ExploreFormDataRestApi
from superset.explore.permalink.api import ExplorePermalinkRestApi
from superset.importexport.api import ImportExportRestApi
from superset.queries.api import QueryRestApi
from superset.queries.saved_queries.api import SavedQueryRestApi
from superset.reports.api import ReportScheduleRestApi
Expand Down Expand Up @@ -180,7 +181,6 @@ def init_views(self) -> None:
)
from superset.views.datasource.views import Datasource
from superset.views.dynamic_plugins import DynamicPluginsView
from superset.views.importexport.api import ImportExportRestApi
from superset.views.key_value import KV
from superset.views.log.api import LogRestApi
from superset.views.log.views import LogModelView
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ def test_export_assets(mocker: MockFixture, client: Any) -> None:
]

# pylint: disable=invalid-name
ExportAssetsCommand = mocker.patch(
"superset.views.importexport.api.ExportAssetsCommand"
)
ExportAssetsCommand = mocker.patch("superset.importexport.api.ExportAssetsCommand")
ExportAssetsCommand().run.return_value = mocked_contents[:]

response = client.get("/api/v1/assets/export/")
Expand Down Expand Up @@ -83,9 +81,7 @@ def test_import_assets(mocker: MockFixture, client: Any) -> None:
}

# pylint: disable=invalid-name
ImportAssetsCommand = mocker.patch(
"superset.views.importexport.api.ImportAssetsCommand"
)
ImportAssetsCommand = mocker.patch("superset.importexport.api.ImportAssetsCommand")

root = Path("assets_export")
buf = BytesIO()
Expand Down

0 comments on commit e9a39a8

Please # to comment.