|
2 | 2 |
|
3 | 3 | import pytest |
4 | 4 |
|
| 5 | +import yatest.common |
5 | 6 | from test_file_common import check_provider, get_sql_query |
6 | 7 | from kqprun import KqpRun |
7 | | -from test_utils import DATA_PATH, get_config, get_parameters_files, replace_vars |
| 8 | +from test_utils import get_config, get_parameters_files, replace_vars |
8 | 9 | from yql_utils import KSV_ATTR, get_files, get_http_files, get_tables, is_xfail, yql_binary_path, yql_source_path |
9 | 10 |
|
| 11 | + |
| 12 | +DATA_PATH = yatest.common.source_path('yt/yql/tests/sql/suites') |
| 13 | + |
10 | 14 | EXCLUDED_SUITES = [ |
11 | 15 | ] |
12 | 16 |
|
@@ -181,16 +185,16 @@ def run_test(suite, case, cfg): |
181 | 185 |
|
182 | 186 |
|
183 | 187 | def run_file_kqp_no_cache(suite, case, cfg): |
184 | | - config = get_config(suite, case, cfg) |
| 188 | + config = get_config(suite, case, cfg, data_path=DATA_PATH) |
185 | 189 | in_tables = get_tables(suite, config, DATA_PATH, def_attr=KSV_ATTR)[0] |
186 | 190 |
|
187 | | - sql_query = get_sql_query('yt', suite, case, config) |
| 191 | + sql_query = get_sql_query('yt', suite, case, config, data_path=DATA_PATH) |
188 | 192 | sql_query = replace_vars(sql_query, "yqlrun_var") |
189 | 193 |
|
190 | 194 | check_provider('yt', config) |
191 | 195 | validate_sql(sql_query) |
192 | 196 |
|
193 | | - if get_parameters_files(suite, config): |
| 197 | + if get_parameters_files(suite, config, data_path=DATA_PATH): |
194 | 198 | pytest.skip('params is not supported in KqpRun') |
195 | 199 |
|
196 | 200 | if get_files(suite, config, DATA_PATH) or get_http_files(suite, config, DATA_PATH): |
|
0 commit comments