Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Unittest AsyncMock
Search
Pranay Suresh
February 05, 2020
Technology
0
240
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
30
Fullstack Engineering Mistakes to Avoid
bottlejammy
0
58
Other Decks in Technology
See All in Technology
Fundraising Gala’s in 2026 What’s Changing & What Still Works
auctria
PRO
0
110
Claude Codeが爆速進化してプラグイン追従がつらいので半自動化した話 ver.2
rfdnxbro
0
460
PMBOK第8版は第7版から何が変わったのか(PMBOK第8版概要解説) / 20260304 Takeshi Watarai
shift_evolve
PRO
0
100
Ultra Ethernet (UEC) v1.0 仕様概説
markunet
3
240
8万デプロイ
iwamot
PRO
2
200
DevOpsエージェントで実現する!! AWS Well-Architected(W-A) を実現するシステム設計 / 20260307 Masaki Okuda
shift_evolve
PRO
3
400
Claude Code Skills 勉強会 (DevelersIO向けに調整済み) / claude code skills for devio
masahirokawahara
0
2.1k
型を書かないRuby開発への挑戦
riseshia
0
210
OCI技術資料 : コンピュート・サービス 概要
ocise
4
54k
作りっぱなしで終わらせない! 価値を出し続ける AI エージェントのための「信頼性」設計 / Designing Reliability for AI Agents that Deliver Continuous Value
aoto
PRO
2
250
タスク管理も1on1も、もう「管理」じゃない ― KiroとBedrock AgentCoreで変わった"判断の仕事"
yusukeshimizu
5
2.3k
技術的負債の泥沼から組織を救う3つの転換点
nwiizo
8
3.2k
Featured
See All Featured
How GitHub (no longer) Works
holman
316
140k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
140
Claude Code のすすめ
schroneko
67
220k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
300
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
670
Discover your Explorer Soul
emna__ayadi
2
1.1k
Docker and Python
trallard
47
3.8k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
250
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
89
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
480
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
230
Speed Design
sergeychernyshev
33
1.6k
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!