Tests

Requirements

pip install -U -r requirements/testing.txt

Lancement des dépendances (Geoserver, Postgres, RabbitMQ)

docker-compose -f tests/dev/docker-compose.dev.yml up -d
POSTGRES_HOST=localhost PORT=5555 POSTGRES_DB=ign POSTGRES_USER=ign POSTGRES_PASSWORD=ign_password gpf-sql-utils execute spatial_ref_sys_bounds
POSTGRES_HOST=localhost PORT=5555 POSTGRES_DB=ign POSTGRES_USER=ign POSTGRES_PASSWORD=ign_password gpf-sql-utils execute compute_gpf_extent

Tests manuels

Démarrage de l’agent de publication :

gpf-derivation-bdd -v

Dans un nouveau terminal, afin d’envoyer des messages sur le bus :

python tests/dev/mime_api_entrepot.py  -f tests/assets/publication_wfs/parameters.json

Lancement des tests unitaires

pytest