]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add note on PostgreSQL config for test runs
authorGunnlaugur Þór Briem <gunnlaugur@gmail.com>
Thu, 15 May 2014 21:02:59 +0000 (21:02 +0000)
committerGunnlaugur Þór Briem <gunnlaugur@gmail.com>
Thu, 15 May 2014 21:02:59 +0000 (21:02 +0000)
Several tests on PostgreSQL depend on English-language text search
config being the default in the test DB. This adds a note about that.

README.unittests.rst

index 1ab4e9536b67256b772a52bb3560ff8dd304100d..99ee1d9977658f2f700167ff31fc479ce0e08ea1 100644 (file)
@@ -250,6 +250,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'
+
 
 CONFIGURING LOGGING
 -------------------