I think that the reason behind the deprecation of overrides.zcml
results from the fact that some black magic is done in order to load them (which you have to replicate in your p.a.testing
setup), which is probably done by the zope server in its startup routine.
Sadly, I am not aware of anything better than going directly on the configuration_registry (located in collective.transmogrifier.transmogrifier
, and it's a global). If you call registerConfig
directly you should be able to override it, but it's dirtier than using overrides.zcml
.
An alternative might be looking into zope.configuration
to see if you can do the override via code...