summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnlaugur Þór Briem <gunnlaugur@gmail.com>2014-05-15 21:02:59 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2014-05-15 17:11:52 -0400
commitc0c4cf78a9cb2f9336cbf6ba04524c3813137244 (patch)
treeacdad6fed44bf4dbd0d678ff02ff72c31cbd9327
parentcf1ba8e101665231c527be393e6873538e33eba3 (diff)
downloadsqlalchemy-c0c4cf78a9cb2f9336cbf6ba04524c3813137244.tar.gz
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
-rw-r--r--README.unittests.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.unittests.rst b/README.unittests.rst
index 7d052cfd7..97cbd45c9 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::