Change by Evan Fagerberg :
--
keywords: +patch
pull_requests: +21567
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/22572
___
Python tracker
<https://bugs.python.org/issu
Evan Fagerberg added the comment:
Reflecting on it more, there should be a sensible way to retrieve the set
attributes of the init method of any class without explicitly instantiating it,
via the inspect module.
--
___
Python tracker
<ht
Evan Fagerberg added the comment:
Rereading the documentation, I see that a class attribute set to null will
return a MagicMock for that attribute. That might be a reasonable workaround.
Perhaps the more concrete solution would be that dir lists uninitialized class
attributes and if a type
Evan Fagerberg added the comment:
Sorry one small note, the error in the example happens on
```python
logger.propagate = False
```
and not
```python
assert logger.propagate is False
```
--
___
Python tracker
<https://bugs.python.org/issue40
New submission from Evan Fagerberg :
Hello, I really like that this library allows for really strict mocking however
one thing I have noticed is that it seems like using spec on a mock does not
properly read the class body for attributes like some of the documentation
claims. For example