observatory-extension/scripts
john krauss 514e1e4c5b Merge pull request #138 from CartoDB/mx-tests
test location for MX
2016-07-13 18:38:46 -04:00
..
autotest.py Merge pull request #138 from CartoDB/mx-tests 2016-07-13 18:38:46 -04:00
generate_fixtures.py drop/create less, better indexes 2016-07-12 11:15:08 -04:00
README.md simpler access to metadata via observatory.cartodb.com 2016-05-17 13:32:46 -04:00
requirements.txt first-pass automatic testing 2016-05-12 14:21:31 -04:00

Automatic tests and utilities

Installation

Python 2.7 should cover you. Virtualenv recommended.

virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

Execution

Currently, we don't have direct access to the metadata end-to-end. This only affects the generation of tests. As a stopgap, we have to define a connection to the test Observatory account.

Run automated tests against a hostname:

(venv) OBS_HOSTNAME=<hostname.cartodb.com> OBS_API_KEY=<api_key> OBS_META_HOSTNAME=observatory.cartodb.com OBS_META_API_KEY= nosetests scripts/autotest.py