From 482b0a75f4828510d29a8f1dde91fa55a205e570 Mon Sep 17 00:00:00 2001 From: David Dobrinskiy Date: Wed, 11 Jun 2025 19:01:17 +0300 Subject: [PATCH] Add test environment setup and improve test documentation --- README.md | 4 ++-- tests/test.env | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 tests/test.env diff --git a/README.md b/README.md index bbe4ba3..de889f1 100644 --- a/README.md +++ b/README.md @@ -216,8 +216,8 @@ You can set these variables in your environment, in a `.env` file, or in the Cla uv sync --all-extras --dev # install dev dependencies uv run ruff check . # run linting -docker compose up -d test_services # start ClickHouse -uv run pytest tests +docker compose up -d clickhouse # start ClickHouse +env $(cat tests/test.env | xargs) uv run pytest tests # one-liner to run tests with default env vars ``` ## YouTube Overview diff --git a/tests/test.env b/tests/test.env new file mode 100644 index 0000000..89d5bd2 --- /dev/null +++ b/tests/test.env @@ -0,0 +1,6 @@ +CLICKHOUSE_HOST=localhost +CLICKHOUSE_PORT=8123 +CLICKHOUSE_USER=default +CLICKHOUSE_PASSWORD=clickhouse +CLICKHOUSE_SECURE=false +CLICKHOUSE_VERIFY=false \ No newline at end of file