Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Unittest AsyncMock
Search
Pranay Suresh
February 05, 2020
Technology
0
230
Unittest AsyncMock
Talk about how to mock async methods in different versions of Python
Pranay Suresh
February 05, 2020
Tweet
Share
More Decks by Pranay Suresh
See All by Pranay Suresh
Event Driven Architecture
bottlejammy
0
29
Fullstack Engineering Mistakes to Avoid
bottlejammy
0
56
Other Decks in Technology
See All in Technology
20251219 OpenIDファウンデーション・ジャパン紹介 / OpenID Foundation Japan Intro
oidfj
0
490
Entity Framework Core におけるIN句クエリ最適化について
htkym
0
120
"人"が頑張るAI駆動開発
yokomachi
1
120
事業の財務責任に向き合うリクルートデータプラットフォームのFinOps
recruitengineers
PRO
2
190
株式会社ビザスク_AI__Engineering_Summit_Tokyo_2025_登壇資料.pdf
eikohashiba
1
110
_第4回__AIxIoTビジネス共創ラボ紹介資料_20251203.pdf
iotcomjpadmin
0
130
シニアソフトウェアエンジニアになるためには
kworkdev
PRO
3
270
意外と知らない状態遷移テストの世界
nihonbuson
PRO
1
230
Amazon Bedrock Knowledge Bases × メタデータ活用で実現する検証可能な RAG 設計
tomoaki25
6
2.3k
Connection-based OAuthから学ぶOAuth for AI Agents
flatt_security
0
350
会社紹介資料 / Sansan Company Profile
sansan33
PRO
11
390k
[Data & AI Summit '25 Fall] AIでデータ活用を進化させる!Google Cloudで作るデータ活用の未来
kirimaru
0
3.6k
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Optimizing for Happiness
mojombo
379
70k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
340
Designing for Performance
lara
610
69k
Deep Space Network (abreviated)
tonyrice
0
21
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.3k
Art, The Web, and Tiny UX
lynnandtonic
304
21k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
69
Believing is Seeing
oripsolob
0
15
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.2k
Prompt Engineering for Job Search
mfonobong
0
120
Transcript
Unittest AsyncMock https://pranaysuresh.com/ https://www.linkedin.com/in/pranaysuresh/
None
None
Because...
Prior to Python 3.8 Option 1: Custom solution
Prior to Python 3.8
Prior to Python 3.8 Option 2: asynctest library: https://pypi.org/project/asynctest/
Python 3.8
None
Other features: assert_awaited, assert_awaited_once, assert_awaited_with, await_count etc etc.
Other features: Mock iterators
Other features: Mock context managers
Thank You!