mirror of
https://github.com/apache/superset.git
synced 2026-08-12 11:11:01 +00:00
chore: set up ruff as a new linter/formatter (#28158)
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
# under the License.
|
||||
# isort:skip_file
|
||||
"""Unit tests for Superset"""
|
||||
|
||||
from datetime import datetime, timedelta
|
||||
import json
|
||||
from typing import Optional
|
||||
@@ -29,14 +30,14 @@ from superset import db
|
||||
from superset.models.core import Log
|
||||
from superset.views.log.api import LogRestApi
|
||||
from tests.integration_tests.base_tests import SupersetTestCase
|
||||
from tests.integration_tests.conftest import with_feature_flags
|
||||
from tests.integration_tests.conftest import with_feature_flags # noqa: F401
|
||||
from tests.integration_tests.constants import (
|
||||
ADMIN_USERNAME,
|
||||
ALPHA_USERNAME,
|
||||
GAMMA_USERNAME,
|
||||
)
|
||||
from tests.integration_tests.dashboard_utils import create_dashboard
|
||||
from tests.integration_tests.test_app import app
|
||||
from tests.integration_tests.test_app import app # noqa: F401
|
||||
|
||||
EXPECTED_COLUMNS = [
|
||||
"action",
|
||||
@@ -173,7 +174,7 @@ class TestLogApi(SupersetTestCase):
|
||||
log1 = self.insert_log("dashboard", admin_user, dashboard_id=dash.id)
|
||||
log2 = self.insert_log("dashboard", admin_user, dashboard_id=dash.id)
|
||||
|
||||
uri = f"api/v1/log/recent_activity/"
|
||||
uri = f"api/v1/log/recent_activity/" # noqa: F541
|
||||
rv = self.client.get(uri)
|
||||
self.assertEqual(rv.status_code, 200)
|
||||
response = json.loads(rv.data.decode("utf-8"))
|
||||
|
||||
Reference in New Issue
Block a user