xivo-lib-python
=========
[![Build Status](https://travis-ci.org/xivo-pbx/xivo-lib-python.png?branch=master)](https://travis-ci.org/xivo-pbx/xivo-lib-python)

xivo-lib-python is a common library used by various other services in XiVO


Running unit tests
------------------

```
apt-get install libpq-dev python-dev libffi-dev libyaml-dev python3-dev
pip install tox
tox --recreate -e py27
```

or

```
apt-get install libpq-dev python-dev libffi-dev libyaml-dev python3-dev
pip install -U -r requirements.txt
pip install -U -r test-requirements.txt
nosetests
```


Running integration tests
-------------------------

You need Docker installed.

Go in the integration tests directory :
```
cd integration_tests
```
Then you can test python 2 (you need python 2.7):
```
make test-setup-py2
make test-py2
```
and/or python 3 (you need your python3 version to be at least 3.7)
```
make test-setup-py3
make test-py3
```
