1
0
Fork 0

Give an example behave.ini

This commit is contained in:
Andrew Kuchling 2018-03-28 14:33:07 -04:00
parent 56b820d38e
commit 8eef6bb42f
1 changed files with 12 additions and 4 deletions

View File

@ -112,11 +112,19 @@ Running the integration tests
Integration tests use `behave package <http://pythonhosted.org/behave/>`_ and
pytest.
Configuration settings for this package are provided via ``behave.ini`` file
in the ``tests`` directory.
Configuration settings for this package are provided via a ``behave.ini`` file
in the ``tests`` directory. An example::
The database user (``pg_test_user = postgres`` in .ini file) has to have
permissions to create and drop test database. Default user is ``postgres``
[behave]
stderr_capture = false
[behave.userdata]
pg_test_user = dbuser
pg_test_host = db.example.com
pg_test_port = 30000
The database user has to have
permissions to create and drop test databases. Default user is ``postgres``
at ``localhost``, without the password (authentication mode trust).
First, install the requirements for testing: