test.py 619 B

12345678910111213141516
  1. import pytest
  2. import yatest
  3. from pure import run_test, DATA_PATH
  4. from test_utils import pytest_generate_tests_for_part
  5. from yql_utils import pytest_get_current_part
  6. def pytest_generate_tests(metafunc):
  7. current_part, part_count = pytest_get_current_part(yatest.common.source_path(__file__))
  8. return pytest_generate_tests_for_part(metafunc, current_part, part_count, DATA_PATH, template='.yqls')
  9. @pytest.mark.parametrize('what', ['Results', 'Debug', 'RunOnOpt', 'LLVM'])
  10. def test(suite, case, cfg, tmpdir, what, yql_http_file_server):
  11. return run_test(suite, case, cfg, tmpdir, what, yql_http_file_server)