mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
chore: set up ruff as a new linter/formatter (#28158)
This commit is contained in:
committed by
GitHub
parent
e8a678b75a
commit
2d63722150
@@ -16,6 +16,7 @@
|
||||
# under the License.
|
||||
# isort:skip_file
|
||||
"""Unit tests for Superset"""
|
||||
|
||||
from typing import Any
|
||||
|
||||
import pytest
|
||||
@@ -28,8 +29,8 @@ from tests.integration_tests.base_tests import (
|
||||
post_assert_metric,
|
||||
)
|
||||
from tests.integration_tests.fixtures.birth_names_dashboard import (
|
||||
load_birth_names_dashboard_with_slices,
|
||||
load_birth_names_data,
|
||||
load_birth_names_dashboard_with_slices, # noqa: F401
|
||||
load_birth_names_data, # noqa: F401
|
||||
)
|
||||
|
||||
|
||||
@@ -56,7 +57,7 @@ def test_invalidate_existing_cache(invalidate):
|
||||
rv = invalidate({"datasource_uids": ["3__table"]})
|
||||
|
||||
assert rv.status_code == 201
|
||||
assert cache_manager.cache.get("cache_key") == None
|
||||
assert cache_manager.cache.get("cache_key") is None # noqa: E711
|
||||
assert (
|
||||
not db.session.query(CacheKey).filter(CacheKey.cache_key == "cache_key").first()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user