Login
From:
til.codeinthehole.com
(Uncensored)
subscribe
TIL How the 'new' argument to 'mock.patch' is shared between parameterized tests — David Winterbottom
https://til.codeinthehole.com/posts/how-the-new-argument-to-mockpatch-is-shared-between-parameterized-tests/
links
backlinks
Roast topics
Find topics
Find it!
Consider this contrived test: from unittest import mock import pytest def get_config(): """Return a config object with a 'salutation' attribute. — can be read in 2 minutes