aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_helpers.py
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2019-11-13 16:06:51 +0100
committerGravatar Sebastiaan Zeeff <[email protected]>2019-11-13 16:16:22 +0100
commitbf7720f16fa69716f15b16e3dcd0f20c186958b8 (patch)
tree24374b105199ce28b991707180f7fbbe608d25bb /tests/test_helpers.py
parentPrevent unwanted logging while running tests (diff)
Allow `name` attribute to be set during Mock init
The `name` keyword argument has a special meaning for the default mockobjects provided by `unittest.mock`. This means that by default, the common d.py `name` attribute can't be set during initalization of one of our custom Mock-objects by passing it to the constructor. Since it's unlikely for us to make use of the special `name` feature of mocks and more likely to want to set the d.py `name` attribute, I added special handling of the `name` kwarg.
Diffstat (limited to 'tests/test_helpers.py')
0 files changed, 0 insertions, 0 deletions