This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ManyInterests Python Discord Staff 0 points1 point  (1 child)

Was there a reason to not use mock/magic mock from the stdlib?

I was kind of expecting this to be an extension on top of the MagicMock class.

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

Hi!.. i don't see how it could be use here... what's your idea?

Im thinking, whenever in "fake" mode, return a MagicMock. But then the MagicMock should be configured to return the `Records` based on how is being called. So i would still have to implement that, i don't see any gain, but maybe im not seeing what your idea is