Jonas Lundberg

Results 19 issues of Jonas Lundberg

Might not be obvious, but this works exactly like unittest mock. Doesn't hurt to make a note in the docs about this api usage.

As discussed in https://github.com/lundberg/respx/issues/177#issuecomment-1399321666 . By default, respx responds with a `httpx.Resopnse(200)` when no mocked route is matched and `assert_all_mocked` is disabled. The idea is to allow the router to...

enhancement

Proposed in https://github.com/lundberg/respx/issues/177#issuecomment-1400554951

Fixes #262

Investigate if the [session_event_loop](https://github.com/lundberg/respx/blob/366dd0bea824464e6ec9242a88f9b390a9dd74cb/respx/fixtures.py#L9) fixture can be deprecated, and then removed. It's plausible that `pytest-asyncio` may have solved this by now.

As discussed in #271, it's quite annoying that `StopIteration` is raised when an iterable side effect is exhausted. In most cases, it's probably more reasonable to have the last entry...

enhancement