From 9820d2c6ae76a339cd2a5b5ce801d185b7d3f523 Mon Sep 17 00:00:00 2001 From: Jelte Fennema-Nio Date: Fri, 22 Dec 2023 09:06:50 +0100 Subject: [PATCH] Add pytest test example about connecting to a worker --- src/test/regress/citus_tests/test/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/regress/citus_tests/test/README.md b/src/test/regress/citus_tests/test/README.md index 6aac98e49..73435ecf6 100644 --- a/src/test/regress/citus_tests/test/README.md +++ b/src/test/regress/citus_tests/test/README.md @@ -82,6 +82,7 @@ the name of the fixture. For example: ```python def test_some_query(cluster): cluster.coordinator.sql("SELECT 1") + assert cluster.workers[0].sql_value('SELECT 2') == 2 ``` If you need a cluster of a specific size you can use the `cluster_factory`