From: Daniele Varrazzo Date: Tue, 12 Jul 2022 11:20:46 +0000 (+0100) Subject: docs: add note to test readme about testing with CRDB X-Git-Tag: 3.1~49^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91c9c04e6007d36ec9b315b667ec393d024e85df;p=thirdparty%2Fpsycopg.git docs: add note to test readme about testing with CRDB --- 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 ...