Skip to content

Commit 6a43b7d

Browse files
committed
pylint: disable some rules
Also some very minor code changes
1 parent dac4d95 commit 6a43b7d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

pytest_httpserver/httpserver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def respond_with_json(self, response_json, status=200, headers=None, content_typ
9595
self.respond_with_data(response_data, status, headers, content_type=content_type)
9696

9797
def respond_with_data(self, response_data="", status=200, headers=None, mimetype=None, content_type=None):
98-
def handler(request):
98+
def handler(request): # pylint: disable=unused-argument
9999
return Response(response_data, status, headers, mimetype, content_type)
100100

101101
self.request_handler = handler
@@ -115,13 +115,13 @@ def match(self, request):
115115
return None
116116

117117

118-
class HTTPServer:
118+
class HTTPServer: # pylint: disable=too-many-instance-attributes
119119
def __init__(self, host="localhost", port=4000):
120120
self.host = host
121121
self.port = port
122-
self.assertions = []
123122
self.server = None
124123
self.server_thread = None
124+
self.assertions = []
125125
self.log = []
126126
self.ordered_handlers = []
127127
self.oneshot_handlers = RequestHandlerList()

pytest_httpserver/pytest_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def httpserver():
2121
yield server
2222

2323

24-
def pytest_sessionfinish(session, exitstatus):
24+
def pytest_sessionfinish(session, exitstatus): # pylint: disable=unused-argument
2525
if Plugin.SERVER is not None:
2626
Plugin.SERVER.clear()
2727
Plugin.SERVER.stop()

0 commit comments

Comments
 (0)