diff options
author | 2020-05-10 17:47:09 -0700 | |
---|---|---|
committer | 2020-05-11 12:03:11 -0700 | |
commit | 34b836a8eba0f006c77a7b3f48f7ab14c37d31ee (patch) | |
tree | 8b34a7862c490e6fe5b2ac694bd29db353919c0a /tests/base.py | |
parent | Test token regex doesn't match invalid tokens (diff) |
Fix autospec decorator when used with multiple attributes
The original approach of messing with the `attribute_name` didn't work
for reasons I won't discuss here (would require knowledge of patcher
internals). The new approach doesn't use patch.multiple but mimics it by
applying multiple patch decorators to the function. As a consequence,
this can no longer be used as a context manager.
Diffstat (limited to 'tests/base.py')
0 files changed, 0 insertions, 0 deletions