[GeoNode-devel] running tests conditionally

Simone Dalmasso simone.dalmasso at gmail.com
Fri Sep 1 00:50:57 PDT 2017

Ciao Paolo,

what about adding tests and specific settings for database in your contrib
app? When activating the app you will have to add it to the INSTALLED_APPS
and also add from geonode.contrib.yourapp.settings import *

This way the db will become postgres and the tests of the app will run.

We did something similar for contrib.mp

2017-08-31 22:32 GMT+02:00 Paolo Corti <pcorti at gmail.com>:

> Hi devs
> I have a test module which needs to test a contrib application
> (createlayer, [1]) which requires PostgreSQL and an existing PostGIS
> database on the system.
> I am planning to have the test module for this contrib application
> called from paver only in the case that the conditions are met. Any
> good idea to implement this?
> thanks and cheers
> p
> [1] https://github.com/capooti/geonode/tree/create-layer-app
> --
> Paolo Corti
> _______________________________________________
> geonode-devel mailing list
> geonode-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20170901/4166384a/attachment.html>

More information about the geonode-devel mailing list