This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from aiohttp import ClientSession | |
from asynctest import CoroutineMock, MagicMock, patch | |
async def get_random_photo_url(): | |
while True: | |
async with ClientSession() as session: | |
async with session.get('random.photos') as resp: | |
json = await resp.json() |