From c0c4cf78a9cb2f9336cbf6ba04524c3813137244 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gunnlaugur=20=C3=9E=C3=B3r=20Briem?= Date: Thu, 15 May 2014 21:02:59 +0000 Subject: [PATCH] Add note on PostgreSQL config for test runs Several tests on PostgreSQL depend on English-language text search config being the default in the test DB. This adds a note about that. Conflicts: README.unittests.rst --- README.unittests.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.unittests.rst b/README.unittests.rst index 7d052cfd7a..97cbd45c9a 100644 --- a/README.unittests.rst +++ b/README.unittests.rst @@ -160,6 +160,12 @@ Additional steps specific to individual databases are as follows:: requires using a test.cfg configuration file as the cmd.exe shell won't properly pass the URL arguments into the nose test runner. + POSTGRESQL: Full-text search configuration should be set to English, else + several tests of ``.match()`` will fail. This can be set (if it isn't so + already) with: + + ALTER DATABASE test SET default_text_search_config = 'pg_catalog.english' + If you'll be running the tests frequently, database aliases can save a lot of typing. The --dbs option lists the built-in aliases and their matching URLs:: -- 2.47.3