I'm currently finishing a rewrite of plone.namedfile (
current work-in-progress branch).
I stumbled upon this method some tests that rely on this method from ZopeTestCase:
'''Derive from this class and an xTestCase to get functional
class MyTest(Functional, ZopeTestCase):
def publish(self, path, basic=None, env=None, extra=None,
request_method='GET', stdin=None, handle_errors=True):
'''Publishes the object at 'path' returning a response object.'''
from io import BytesIO
from ZPublisher.HTTPRequest import WSGIRequest as Request
from ZPublisher.HTTPResponse import WSGIResponse
As some might be aware, thanks to
@do3cc, we know that mixing plone.testing and ZopeTestCase is bad, bad, bad:
So I'm wondering what needs to be done to update a test that relies on this publish method... any ideas/code pointers?