I'm switching our testing environment from Nose to py.test for testing a Turbogears2 web application.
Currently, when Nose runs it gathers information from a testing configuration file (test.ini) that holds all the testing variables the application needs. And it seems to do so in an automatic way (I'm simply running nosetests
and everything gets loaded)
The problem relies in the inability for py.test to be pointed at the right INI configuration file so that I can get the app loaded with the variables I need.
Currently, the failing point is pylons.app_globals which is simply non-existent when running py.test (hence everything fails).
I have been through the Turbogears documentation but they only mention Nose/nosetests and nothing else.
Is there a way to be able to lead the application with the testing variables I rely upon with py.test ?