From: Gunnlaugur Þór Briem Date: Thu, 15 May 2014 21:02:59 +0000 (+0000) Subject: Add note on PostgreSQL config for test runs X-Git-Tag: rel_0_8_7~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c0c4cf78a9cb2f9336cbf6ba04524c3813137244;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git 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 --- 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::