Skip to content

Add custom matcher functions #34

@h2non

Description

@h2non

A possible interface implementation:

def matcher(request, mock):
  return request.url.path == '/v1/foo'

pook.get('api.server.com').match_func(matcher).match_func(matcher)

Overload method for specific matcher function usage:

def json_matcher(body):
  return body == '{"foo": true}'

pook.get('api.server.com').body(json_matcher)

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions