# xivo-purge-db

xivo-purge-db is a service for deleting (and optionally backup) old database entries on a XiVO server

## Running unit tests

```sh
apt-get install libpq-dev python-dev libyaml-dev
pip install tox
tox --recreate -e py3
```

## Running integration tests

You need Docker installed.

```sh
cd integration_tests
make test-setup
make test
make distclean
```

## Developing

When you're developing, once you have done the setup above, you may run integration tests faster with:

```sh
cd integration_tests
docker-compose run sync
docker-compose run purgedb  # repeat to run the tests against new code
```
