From 6e4f4ff0c5ff5cfdb0906aa0d8a153d7f66db844 Mon Sep 17 00:00:00 2001 From: Janos Simon <janos.simon@nokia.com> Date: Sat, 19 Nov 2016 19:02:06 +0100 Subject: [PATCH] minor refactor --- orchestrator/api/stacks.py | 2 +- tests/test_api.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/orchestrator/api/stacks.py b/orchestrator/api/stacks.py index c856e02..5c16c83 100644 --- a/orchestrator/api/stacks.py +++ b/orchestrator/api/stacks.py @@ -64,7 +64,7 @@ class LoggingMiddleware(object): def process_request(self, request, *_): self.logger.info('Request received: %s %s', request.method, request.path) - def process_response(self, _, response, *__): + def process_response(self, _request, response, *_): if response.body: self.logger.info('Sending response (%s): %s', response.status, response.body) diff --git a/tests/test_api.py b/tests/test_api.py index cde1b2d..13739c5 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -6,9 +6,9 @@ from falcon.testing import TestCase from orchestrator.api import stacks -class StacksControllerTest(TestCase): +class StackTest(TestCase): def setUp(self): - super(StacksControllerTest, self).setUp() + super(StackTest, self).setUp() self.app = stacks.create_app() def test_stacks_api_allowed_methods_on_endpoints(self): -- libgit2 0.26.0