pytest-aiohttp Questions

4

Solved

How do I define async fixtures and use them in async tests? The following code, all in the same file, fails miserably. Is the fixture called plainly by the test runner and not awaited? @pytest.fi...
Maryammaryann asked 20/4, 2018 at 7:53

4

Solved

I am using aiohttp to make asynchronous requests and I want to test my code. I want to mock out requests sent by aiohttp.ClientSession. I am looking for something similar to the way responses handl...
Steppe asked 28/8, 2019 at 19:51

0

What I'm Doing I'm learning aiohttp by building a REST api which I'm testing with Pytest (and its async and aiohttp plugins). For my first test (I'm going with TDD from outset) I have the followi...
1

© 2022 - 2024 — McMap. All rights reserved.