mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat: welcome presto to the suite of tested databases (#10498)
* Add presto to the CI Sample test data Datetime conversion Sample test data Fix tests * TODO to switch to timestamps * Address feedback * Update requirements * Add TODOs Co-authored-by: bogdan kyryliuk <bogdankyryliuk@dropbox.com>
This commit is contained in:
@@ -26,6 +26,7 @@ import prison
|
||||
import pytest
|
||||
from sqlalchemy.sql import func
|
||||
|
||||
from superset.utils.core import get_example_database
|
||||
from tests.test_app import app
|
||||
from superset.connectors.connector_registry import ConnectorRegistry
|
||||
from superset.extensions import db, security_manager
|
||||
@@ -694,6 +695,10 @@ class TestChartApi(SupersetTestCase, ApiOwnersTestCaseMixin):
|
||||
result = response_payload["result"][0]
|
||||
self.assertEqual(result["rowcount"], 5)
|
||||
|
||||
# TODO: fix offset for presto DB
|
||||
if get_example_database().backend == "presto":
|
||||
return
|
||||
|
||||
# ensure that offset works properly
|
||||
offset = 2
|
||||
expected_name = result["data"][offset]["name"]
|
||||
|
||||
Reference in New Issue
Block a user