Create a custom pytest test collector for .cql files and move CQL test execution logic from `CQLApprovalTest` class and `pylib/cql_repl/cql_repl.py` file to `CqlTest.runtest()` method. In result, the only difference between CQLApproval and Python suite types is suffixes of test files.
17 lines
410 B
Python
17 lines
410 B
Python
#
|
|
# Copyright (C) 2022-present ScyllaDB
|
|
#
|
|
# SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
|
|
#
|
|
|
|
from test.pylib.suite.python import add_host_option, add_cql_connection_options
|
|
|
|
# Add required fixtures:
|
|
from test.cqlpy.conftest import host, cql
|
|
from test.cql.conftest import cql_test_connection
|
|
|
|
|
|
def pytest_addoption(parser):
|
|
add_host_option(parser)
|
|
add_cql_connection_options(parser)
|