mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
chore: proper current_app.config proxy usage (#34345)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
6c9cda758a
commit
cb27d5fe8d
@@ -23,9 +23,10 @@ from unittest.mock import Mock, patch
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
import pytest
|
||||
from flask import current_app
|
||||
from pandas import DateOffset
|
||||
|
||||
from superset import app, db
|
||||
from superset import db
|
||||
from superset.charts.schemas import ChartDataQueryContextSchema
|
||||
from superset.common.chart_data import ChartDataResultFormat, ChartDataResultType
|
||||
from superset.common.query_context import QueryContext
|
||||
@@ -744,7 +745,7 @@ class TestQueryContext(SupersetTestCase):
|
||||
query_object = query_context.queries[0]
|
||||
time_offsets_obj = query_context.processing_time_offsets(df, query_object)
|
||||
sqls = time_offsets_obj["queries"]
|
||||
row_limit_value = app.config["ROW_LIMIT"]
|
||||
row_limit_value = current_app.config["ROW_LIMIT"]
|
||||
row_limit_pattern_with_config_value = r"LIMIT " + re.escape(
|
||||
str(row_limit_value)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user