Skip to content

Add stub_for support like in Java #127

@asafm

Description

@asafm

Proposal

I would very much like a syntax like in Java but in Python:

stub_for(
    get("/file.csv").will_return(
        ok(
            body=CSV_CONTENT,
            headers={"Content-Type": "text/csv"},
            fixed_delay_milliseconds=2000,
        )
    )
)

References

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions