From 91c9c04e6007d36ec9b315b667ec393d024e85df Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 12 Jul 2022 12:20:46 +0100 Subject: [PATCH] docs: add note to test readme about testing with CRDB --- tests/README.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/README.rst b/tests/README.rst index a428bb4d7..bdbae40c8 100644 --- a/tests/README.rst +++ b/tests/README.rst @@ -71,3 +71,17 @@ a set of env vars working for your setup:: # pip install -e ./psycopg[test] ./psycopg_c # pytest + + +Testing with CockroachDB +======================== + +You can run CRDB in a docker container using:: + + docker run -p 26257:26257 --name crdb --rm \ + cockroachdb/cockroach:v22.1.3 start-single-node --insecure + +And use the following connection string to run the tests:: + + export PSYCOPG_TEST_DSN="host=localhost port=26257 user=root dbname=defaultdb" + pytest ... -- 2.47.3