zopefoundation / zope.app.publisher

Implementations and means for configuration of Zope 3-style views and resources.
Other
1 stars 5 forks source link

Code duplication from zope.app.wsgi in tests #7

Closed icemac closed 4 years ago

icemac commented 4 years ago

The following code lines are mostly identical to zope.app.wsgi.testlayer: https://github.com/zopefoundation/zope.app.publisher/blob/5125d8c54bd9aa4883640a66ec212807288b4d72/src/zope/app/publisher/xmlrpc/tests/__init__.py#L28-L92

As zope.app.publisher already depends on zope.app.wsgi. The code there could be used here after zopefoundation/zope.app.wsgi#17 is fixed.

icemac commented 4 years ago

As zope.app.wsgi has no infrastructure to test the XMLRPC server proxy (zopefoundation/zope.app.wsgi#17 is there because the code is completely untested.) #8 suggests to generalize the code here and remove it from zope.app.wsgi.