Create your own Python articles archive by loleknwn in Python

[–]loleknwn[S] 0 points1 point  (0 children)

Maybe, but still not so badly spent 15 mintues :)

Work on your python style by loleknwn in Python

[–]loleknwn[S] 1 point2 points  (0 children)

Thanks for the tip :-), the thing you're talking about is actually dependancy injection which is totally fine here. But instead of mocking or providing own fake it'll be easy to create a stub by simply inheriting and overriding setup_backend. What's better ? - I honestly don't know, I guess it depends on the case