diff --git a/keystonemiddleware/tests/unit/utils.py b/keystonemiddleware/tests/unit/utils.py index d5c49301..0d2008ae 100644 --- a/keystonemiddleware/tests/unit/utils.py +++ b/keystonemiddleware/tests/unit/utils.py @@ -98,6 +98,11 @@ class TestResponse(requests.Response): self.status_code = data def __eq__(self, other): + """Test if the response is equivalent to another response. + + This works by comparing the attribute dictionaries of both TestResponse + instances. + """ return self.__dict__ == other.__dict__ @property diff --git a/tox.ini b/tox.ini index ad790a98..dbd21b0e 100644 --- a/tox.ini +++ b/tox.ini @@ -40,8 +40,7 @@ commands = oslo_debug_helper {posargs} # D102: Missing docstring in public method # D103: Missing docstring in public function # D104: Missing docstring in public package -# D105: Missing docstring in magic method -ignore = D100,D101,D102,D103,D104,D105 +ignore = D100,D101,D102,D103,D104 show-source = True exclude = .venv,.tox,dist,doc,*egg,build,*openstack/common*