Python 3.x | Asyncio Testing

Опубликовано: 20 Июнь 2022
на канале: Josue Kula
6,324
63

A python coroutine is an awaitable object that implement _await_ magic method in its class. In this video I explain and demonstrate how to test an asyncio task, mock a coroutine, test both a transient and permanent loop. Lastly, I introduce the class ThreadPoolExecutor which is a class from python current that handles multithreading and multiprocessing. Watch the video til the end and make sure you subscribe for more videos to come.

#coroutine #python-asyncio #testing-asyncio-code #task-python
00:37 Introduction
2:05 The difference between multithreading and multiprocessing
04:04 Python packages used in demo
05:23 Starting our demo
06:00 Testing a coroutine with pytest
11:59 Testing a task in python asyncio / transient loop
15:25 Testing a permanent loop in python asyncio
25:01 Installing pytest-cov and pytest with coverage
26:45 Mocking a coroutine in python asyncio
34:09 Mocking an async loop in python
42:15 Introducing ThreadPoolExecutor ( class from concurrent )

#softwaredevelopment #softwareengineer

https://josuekula.com/videos
Twitter:   / j_kuler  


На этой странице сайта вы можете посмотреть видео онлайн Python 3.x | Asyncio Testing длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Josue Kula 20 Июнь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 6,324 раз и оно понравилось 63 зрителям. Приятного просмотра!