Skip to content

Negative match #177

@WojciechMigda

Description

@WojciechMigda

Hi,
is there an elegant way to achieve negative match with pytest_httpx? For instance, verify that a header is not present in the request?

A workaround might involve copying existing add_response and modifying it by adding custom assertions in the callback, but I don't feel good about it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions