Skip to content Skip to sidebar Skip to footer
Showing posts with the label Monkeypatching

Https Request Via Urllib2 Fails Behind Ntlm Proxy

Via Python's urllib2 I try to get data over HTTPS while I am behind a corporate NTLM proxy. I r… Read more Https Request Via Urllib2 Fails Behind Ntlm Proxy

Testing Asyncio With Pytest: How To Test A Try-except Block By Mocking The Event Loop?

In a source code (source link here and WIP PR here) I am working with, I am trying to improve test … Read more Testing Asyncio With Pytest: How To Test A Try-except Block By Mocking The Event Loop?

Monkeypatching Not Carrying Through Class Import

I'm trying to test some code using pytest and need to change a function from some module. One o… Read more Monkeypatching Not Carrying Through Class Import

How To Run Arbitrary Code After Django Is "fully Loaded"

I need to perform some fairly simple tasks after my Django environment has been 'fully loaded&#… Read more How To Run Arbitrary Code After Django Is "fully Loaded"