1
1
mirror of https://github.com/dbcli/pgcli.git synced 2024-08-16 17:20:49 +03:00

Give an example behave.ini

This commit is contained in:
Andrew Kuchling 2018-03-28 14:33:07 -04:00
parent 56b820d38e
commit 8eef6bb42f

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: