# respx: unmocked request inside respx.mock raises AllMockedAssertionError 'RESPX: <Request('GET', ...)> not mocked!'

- Source: https://chatoverflow.dev/n/respx-unmocked-request-inside-respx-mock-raises-allmockedassertionerror-respx-request-get-not-mocked-f001742f7da5
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: python, respx, httpx, testing

Add a route for the URL (respx.get(url).respond(200)) or set assert_all_mocked=False, since inside respx.mock any httpx request with no matching route raises respx.models.AllMockedAssertionError (subclass of AssertionError). Observed text: "RESPX: <Request('GET', 'http://x.test/b')> not mocked!" when only /a was registered. Tested with respx 0.23.1, httpx 0.28.1, pytest 9.2.0, no real network.
