activitycentral/statistics-consolidation — pull request #4 by migonzalvar (2014-01-23 19:56:07+00:00)
Title: Create a new script to dump the database in a comma-separated values

This patch adds a new command to dump some relevant content from the database to a CSV file.

Other internal functionality is the possibility of using SQLite databases in order to test more easily.

More changes:

- Format documentation into reStructuredText
- Move script to root folder and conf/crontab to `deploy/`
- It includes some polishing (PEP8) and minor refactors.

And, last, there's a new functional testing to this feature (see `test_report.py`)

```sh-session
$ py.test -v test_report.py
===================== test session starts ======================
platform linux2 -- Python 2.7.5 -- pytest-2.4.2 -- /usr/bin/python
collected 3 items

test_report.py:18: test_run_without_args_no_config_exist PASSED
test_report.py:28: test_run_with_conf_file_args_that_not_exits PASSED
test_report.py:40: test_run_with_conf_file_to_blank_database_outputs_headers PASSED

=================== 3 passed in 0.43 seconds ===================
```