<div dir="ltr">Ciao Paolo,<div><br></div><div>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 *</div><div><br></div><div>This way the db will become postgres and the tests of the app will run.</div><div><br></div><div>We did something similar for <a href="http://contrib.mp">contrib.mp</a></div><div><a href="https://github.com/GeoNode/geonode/tree/master/geonode/contrib/mp">https://github.com/GeoNode/geonode/tree/master/geonode/contrib/mp</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-08-31 22:32 GMT+02:00 Paolo Corti <span dir="ltr"><<a href="mailto:pcorti@gmail.com" target="_blank">pcorti@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi devs<br>
<br>
I have a test module which needs to test a contrib application<br>
(createlayer, [1]) which requires PostgreSQL and an existing PostGIS<br>
database on the system.<br>
I am planning to have the test module for this contrib application<br>
called from paver only in the case that the conditions are met. Any<br>
good idea to implement this?<br>
<br>
thanks and cheers<br>
p<br>
<br>
[1] <a href="https://github.com/capooti/geonode/tree/create-layer-app" rel="noreferrer" target="_blank">https://github.com/capooti/<wbr>geonode/tree/create-layer-app</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Paolo Corti<br>
______________________________<wbr>_________________<br>
geonode-devel mailing list<br>
<a href="mailto:geonode-devel@lists.osgeo.org">geonode-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/geonode-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">SimoneĀ </div>
</div>