async_request_unittest

Do unittest for asynchroneous request with aiohttp and asynchroneous file reading with aiofiles in framework of pytest.

How to use

Install the dependencies:

pip3 install -r requirements.txt

Run the following command in the root directory of the project:

python3 -m pytest

What is new here

  • Mock a asynchroneous response to test a aiohttp request

  • Mock a asynchroneous file reading to test a aiofiles reading

What to do next