Skip to content

Add router context manager utility for asserting call count #248

Description

@lundberg

e.g.

@respx.mock
def test_called():
    respx.get("https://example.com/foobar", name="foobar")
    respx.get("https://example.com/hamspam", name="hamspam")

    with respx.assert_call_count(foobar=1, hamspam=0):
        httpx.get("https://example.com/foobar")

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions