observatory-extension/scripts
2016-05-17 12:25:44 -04:00
..
autotest.py use school district point for clipped geoms too 2016-05-16 15:32:40 -04:00
generate_fixtures.py updates fixtures 2016-05-17 08:28:23 -04:00
README.md better readme for scripts/ 2016-05-17 12:25:44 -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=foobar OBS_META_HOSTNAME=<meta hostname> OBS_META_API_KEY=<meta api_key> nosetests scripts/autotest.py