Category Archives: Test

Partial stubbing of os.path.isfile() with Mocker

One neat feature which Mocker offers is the ability to very easily implement custom behavior on specific functions or methods. Take for instance the case where you want to pretend to some code that a given file exists, but you … Continue reading

Posted in Project, Python, Snippet, Test | Leave a comment

Mocker for Python released!

After being bored for a long time for the lack of a better infrastructure for creating test doubles in Python, I decided to give it a go. I’m actually quite happy with what came out.. it took me about four … Continue reading

Posted in Project, Python, Test | Leave a comment