observatory-extension/scripts
Mario de Frutos fb17d05714 Improve Travis testing
- Added multiple versions of PostgreSQL to test (9.5, 9.6 and 10)
- Added multiple versions of Postgis to test
- Cleand travis yaml in favor of a script done in other project thanks
to Paul Ramsey
2018-04-04 15:42:25 +02:00
..
ci Improve Travis testing 2018-04-04 15:42:25 +02:00
generate_fixtures.py Generate new fixtures to include new meta table 2017-08-09 16:10:39 +02:00
README.md simpler access to metadata via observatory.cartodb.com 2016-05-17 13:32:46 -04:00
requirements.txt Generate new fixtures to include new meta table 2017-08-09 16:10:39 +02: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