xivo-dao is a library used internally by XiVO to access and modify different data sources (e.g. postgres database, provisoning database).
- Install PostgreSQL
- Install dependencies with
pip install -r requirements.txt
- Create a test database
- Run the tests with
nosetests xivo_dao
You can create the database by running these SQL commands:
CREATE DATABASE asterisktest;
CREATE USER asterisk WITH PASSWORD 'asterisk';
GRANT ALL ON DATABASE asterisktest TO asterisk;
On debian based systems you can access the psql console with sudo -u postgres psql