Skip to content

Commit

Permalink
- fix calls to publish_module by explicitly naming keyword arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Apr 26, 2019
1 parent aa18135 commit 54e18a1
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/ZPublisher/tests/test_WSGIPublisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,20 @@ def _callFUT(self, environ, start_response,
if _publish is not None:
if _response_factory is not None:
if _request_factory is not None:
return publish_module(environ, start_response, _publish,
_response_factory, _request_factory)
return publish_module(environ, start_response, _publish,
_response_factory)
return publish_module(environ, start_response,
_publish=_publish,
_response_factory=_response_factory,
_request_factory=_request_factory)
return publish_module(environ, start_response,
_publish=_publish,
_response_factory=_response_factory)
else:
if _request_factory is not None:
return publish_module(environ, start_response, _publish,
return publish_module(environ, start_response,
_publish=_publish,
_request_factory=_request_factory)
return publish_module(environ, start_response, _publish)
return publish_module(environ, start_response,
_publish=_publish)
return publish_module(environ, start_response)

def _registerView(self, factory, name, provides=None):
Expand Down

0 comments on commit 54e18a1

Please sign in to comment.