mirror of
https://github.com/apache/superset.git
synced 2026-05-07 17:04:58 +00:00
chore: enforce more ruff rules (#31447)
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9da65d6bfd
commit
e51b95ffa8
@@ -208,7 +208,7 @@ class TestQueryContext(SupersetTestCase):
|
||||
payload = get_query_context("birth_names", add_postprocessing_operations=True)
|
||||
del payload["queries"][0]["granularity"]
|
||||
|
||||
# construct baseline query_cache_key from query_context with post processing operation
|
||||
# construct baseline query_cache_key from query_context with post processing operation # noqa: E501
|
||||
query_context: QueryContext = ChartDataQueryContextSchema().load(payload)
|
||||
query_object: QueryObject = query_context.queries[0]
|
||||
cache_key_original = query_context.query_cache_key(query_object)
|
||||
@@ -222,7 +222,7 @@ class TestQueryContext(SupersetTestCase):
|
||||
def test_query_cache_key_changes_when_post_processing_is_updated(self):
|
||||
payload = get_query_context("birth_names", add_postprocessing_operations=True)
|
||||
|
||||
# construct baseline query_cache_key from query_context with post processing operation
|
||||
# construct baseline query_cache_key from query_context with post processing operation # noqa: E501
|
||||
query_context = ChartDataQueryContextSchema().load(payload)
|
||||
query_object = query_context.queries[0]
|
||||
cache_key_original = query_context.query_cache_key(query_object)
|
||||
|
||||
Reference in New Issue
Block a user