Skip to content

Commit d87fcf9

Browse files
committed
Fix missing handler_type arg
1 parent 85e3e09 commit d87fcf9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytest_httpserver/httpserver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,11 +972,12 @@ def clear_all_handlers(self):
972972
self.oneshot_handlers = RequestHandlerList()
973973
self.handlers = RequestHandlerList()
974974

975-
def expect(self, matcher: RequestMatcher) -> RequestHandler:
975+
def expect(self, matcher: RequestMatcher, handler_type: HandlerType = HandlerType.PERMANENT) -> RequestHandler:
976976
"""
977977
Create and register a request handler.
978978
979979
:param matcher: :py:class:`RequestMatcher` used to match requests.
980+
:param handler_type: type of handler
980981
"""
981982
request_handler = RequestHandler(matcher)
982983
if handler_type == HandlerType.PERMANENT:

0 commit comments

Comments
 (0)