Skip to content

User typos can trigger baroque exceptions #183

@demospace

Description

@demospace

self.cassette.match_options.update(match_requests_on)

When I use a default cassette configuration with a modified match_on (running via pytest), I get an unhashable type at the line referenced above.

It looks to me like it's trying to update a dict from a list? Per the comment, I tried changing

config.default_cassette_options['match_requests_on'] = ['method', 'uri', 'jsonbody'],
to
config.default_cassette_options['match_requests_on'] = set(['method', 'uri', 'jsonbody']),

with no effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions