From c801117ef4dfb95c4124f1af665ffe240ff6ae72 Mon Sep 17 00:00:00 2001 From: Dolph Mathews Date: Mon, 16 May 2016 17:12:45 -0500 Subject: [PATCH] Fix D105: Missing docstring in magic method (PEP257) Change-Id: If4c48aa3f37093295d3d934343c4f28e40c21af0 --- keystonemiddleware/tests/unit/utils.py | 5 +++++ tox.ini | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/keystonemiddleware/tests/unit/utils.py b/keystonemiddleware/tests/unit/utils.py index d5c4930..0d2008a 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 ad790a9..dbd21b0 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*