Skip to content

Commit

Permalink
Fixed skipped window function tests in connectors (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
altvod authored Oct 31, 2023
1 parent 9493976 commit d04cbca
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@
from dl_testing.regulated_test import (
Feature,
for_features,
RegulatedTestCase,
)


class DefaultBasicExtAggregationTestSuite(DataApiTestBase, DatasetTestBase, DbServiceFixtureTextClass):
class DefaultBasicExtAggregationTestSuite(RegulatedTestCase, DataApiTestBase, DatasetTestBase, DbServiceFixtureTextClass):
def test_lod_fixed_single_dim_in_two_dim_query(self, control_api, data_api, saved_dataset):
ds = add_formulas_to_dataset(
api_v1=control_api,
Expand Down Expand Up @@ -263,7 +264,7 @@ def get_data(order_by: list[ResultField]) -> list:
assert ordered_data_rows == data_rows


class DefaultBasicLookupFunctionTestSuite(DataApiTestBase, DatasetTestBase, DbServiceFixtureTextClass):
class DefaultBasicLookupFunctionTestSuite(RegulatedTestCase, DataApiTestBase, DatasetTestBase, DbServiceFixtureTextClass):
def test_ago_any_db(self, request, saved_connection_id, control_api, data_api, db):
db_table = make_table(db=db)
request.addfinalizer(functools.partial(db.drop_table, db_table.table))
Expand Down Expand Up @@ -459,7 +460,7 @@ def test_month_ago_for_shorter_month(self, request, db, saved_connection_id, con
assert len(data_rows) == 1


class DefaultBasicWindowFunctionTestSuite(DataApiTestBase, DatasetTestBase, DbServiceFixtureTextClass):
class DefaultBasicWindowFunctionTestSuite(RegulatedTestCase, DataApiTestBase, DatasetTestBase, DbServiceFixtureTextClass):
feature_window_functions = Feature("window_functions")

@for_features(feature_window_functions)
Expand Down

0 comments on commit d04cbca

Please sign in to comment.