4min chapter

Test & Code cover image

Twisted and Testing Event Driven / Asynchronous Applications - Glyph

Test & Code

CHAPTER

Test a Sincrenis Code?

Twisted started mandating testing as part of its development process in two thousand five and it was not a popular thing. The way that we originally wrote it to support a sincreness testing was spin up the whole event loop, get all the sockets and all the interstructure for like, actually talking to the network. But what you're doing there is you are that's full system integration testing. And this is what happens if you return a deferred from a trial test case. You can still do this to day. It's useful for certain times of inter integration testing. If you're writing a, a cortine, or a thing that returns it deferred, some process is like

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode