From 20820cb01078a04290babfb16d3444bb1231501a Mon Sep 17 00:00:00 2001 From: Andrey Snytin Date: Wed, 8 Nov 2023 01:54:14 +0100 Subject: [PATCH] cq --- .../dl_api_lib/app/data_api/resources/ping.py | 3 ++- .../connector/complex_queries.py | 14 ++++++++++---- terrarium/bi_ci/bi_ci/execute_mypy_multi.py | 4 +--- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/lib/dl_api_lib/dl_api_lib/app/data_api/resources/ping.py b/lib/dl_api_lib/dl_api_lib/app/data_api/resources/ping.py index a5d1c85bb..d59d94eee 100644 --- a/lib/dl_api_lib/dl_api_lib/app/data_api/resources/ping.py +++ b/lib/dl_api_lib/dl_api_lib/app/data_api/resources/ping.py @@ -52,7 +52,8 @@ class PingReadyView(BaseView): async def is_pg_ready(self) -> bool: compeng: CompEngPgService = CompEngPgService.get_app_instance(self.request.app) processor = compeng.get_data_processor( - service_registry=self.dl_request.services_registry, reporting_enabled=False, + service_registry=self.dl_request.services_registry, + reporting_enabled=False, ) try: 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 c0eb886d9..2154367d0 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 @@ -30,12 +30,14 @@ from dl_core_testing.testcases.service_base import DbServiceFixtureTextClass from dl_testing.regulated_test import ( Feature, - for_features, RegulatedTestCase, + for_features, ) -class DefaultBasicExtAggregationTestSuite(RegulatedTestCase, 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, @@ -264,7 +266,9 @@ def get_data(order_by: list[ResultField]) -> list: assert ordered_data_rows == data_rows -class DefaultBasicLookupFunctionTestSuite(RegulatedTestCase, 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)) @@ -460,7 +464,9 @@ def test_month_ago_for_shorter_month(self, request, db, saved_connection_id, con assert len(data_rows) == 1 -class DefaultBasicWindowFunctionTestSuite(RegulatedTestCase, DataApiTestBase, DatasetTestBase, DbServiceFixtureTextClass): +class DefaultBasicWindowFunctionTestSuite( + RegulatedTestCase, DataApiTestBase, DatasetTestBase, DbServiceFixtureTextClass +): feature_window_functions = Feature("window_functions") @for_features(feature_window_functions) diff --git a/terrarium/bi_ci/bi_ci/execute_mypy_multi.py b/terrarium/bi_ci/bi_ci/execute_mypy_multi.py index 53db415c8..1284fd710 100644 --- a/terrarium/bi_ci/bi_ci/execute_mypy_multi.py +++ b/terrarium/bi_ci/bi_ci/execute_mypy_multi.py @@ -3,9 +3,7 @@ from pathlib import Path import subprocess import sys -from typing import ( - Iterable, -) +from typing import Iterable import clize import tomlkit