ClickHouse/tests/integration/test_keeper_compression/test_without_compression.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
543 B
Python
Raw Normal View History

2023-10-13 11:20:02 +00:00
#!/usr/bin/env python3
import pytest
from helpers.cluster import ClickHouseCluster
cluster = ClickHouseCluster(__file__)
node1 = cluster.add_instance(
2023-10-13 11:40:14 +00:00
"node1",
main_configs=["configs/keeper.xml", "configs/keeper_without_compression.xml"],
stay_alive=True,
2023-10-13 11:20:02 +00:00
)
# test that server is able to start
@pytest.fixture(scope="module")
def started_cluster():
try:
cluster.start()
yield cluster
finally:
cluster.shutdown()
def test_select(started_cluster):
assert node1.query("SELECT 1") == "1\n"