خرید بک لینک

Vote count: 0

Let's say I have a class like this.

class SomeProductionProcess(CustomCachedSingleTon):

@def loaddata(): """ Uses an iterator over a large file in Production for the Data pipeline. """

Now at test time I want to change the logic inside the loaddata() method. It would be a simple custom logic that doesn't process large data.

How do we supply custom implementation of loaddata() at testtime using Python Mock UnitTest framework?

asked 24 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 5 مرداد 1395 ساعت: 8:06

صفحه بندی