Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Unittest AsyncMock
Search
Pranay Suresh
February 05, 2020
Technology
260
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Unittest AsyncMock
Talk about how to mock async methods in different versions of Python
Pranay Suresh
February 05, 2020
More Decks by Pranay Suresh
See All by Pranay Suresh
Event Driven Architecture
bottlejammy
0
46
Fullstack Engineering Mistakes to Avoid
bottlejammy
0
76
Other Decks in Technology
See All in Technology
20261031_IoTLT_vol140_kitazaki_v1.pdf
kitazaki
0
170
FinOpsを導入してマルチプロダクトのコスト最適化を実現する
kworkdev
PRO
0
120
Technical Project Manager の役割とやりがい、少しだけ AI
yoshiiryo1
0
590
IoTとは〜? 数字で見るSORACOM UG【SORACOM UG Explorer 2026】
soracom
PRO
0
170
re:Invent の去年のスケジュールを公開します!
miu_crescent
PRO
0
280
AI時代に求められる優秀なTechLeadの振る舞い
pospome
4
4.9k
cdkd (CDK Direct)
gotok365
3
200
Active Directory と Entra ID のむむむな関係
murachiakira
PRO
2
960
kintoneで在庫管理システムを作るときの要件定義・設計ポイント
kai0707
0
230
SLOを阻む不安
sraku2159
0
220
AIに任せられるFlutterコードベースを作る 〜仕様をコードで表し、ハーネスで守る〜
myohei
1
630
E2Eってつらくないですか?E2Eの管理コストを下げる手段とその実践
akaboshinit
6
3k
Featured
See All Featured
Deep Space Network (abreviated)
tonyrice
0
410
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
620
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
550
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
970
Code Review Best Practice
trishagee
74
20k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
23k
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!