mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
refactor(test): add login_as_admin in global conftest (#20703)
This commit is contained in:
@@ -293,7 +293,7 @@ class TestQueryContext(SupersetTestCase):
|
||||
payload = get_query_context("birth_names")
|
||||
payload["result_format"] = ChartDataResultFormat.CSV.value
|
||||
payload["queries"][0]["row_limit"] = 10
|
||||
query_context = ChartDataQueryContextSchema().load(payload)
|
||||
query_context: QueryContext = ChartDataQueryContextSchema().load(payload)
|
||||
responses = query_context.get_payload()
|
||||
self.assertEqual(len(responses), 1)
|
||||
data = responses["queries"][0]["data"]
|
||||
|
||||
Reference in New Issue
Block a user