From d04cbca2b76976a86096369b913b9b6e8a886344 Mon Sep 17 00:00:00 2001 From: Grigory Statsenko Date: Tue, 31 Oct 2023 10:07:11 +0100 Subject: [PATCH] Fixed skipped window function tests in connectors (#55) --- .../dl_api_lib_testing/connector/complex_queries.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/dl_api_lib_testing/dl_api_lib_testing/connector/complex_queries.py b/lib/dl_api_lib_testing/dl_api_lib_testing/connector/complex_queries.py index 64152ba6f..c0eb886d9 100644 --- a/lib/dl_api_lib_testing/dl_api_lib_testing/connector/complex_queries.py +++ b/lib/dl_api_lib_testing/dl_api_lib_testing/connector/complex_queries.py @@ -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, @@ -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)) @@ -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)