]> 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)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 May 2014 21:11:52 +0000 (17:11 -0400)
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

index 7d052cfd7a87ee42f6442ad59216306371c300dc..97cbd45c9a8a739bd6d5492ea58c426e6da01d42 100644 (file)
@@ -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::