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")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions