From f06adee7d52dd8a1c2c605aa53177f8ca9348622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Kukr=C3=A1l?= Date: Wed, 27 Dec 2017 21:28:30 +0100 Subject: [PATCH] fix pep8 --- kqueen/middleware.py | 1 - kqueen/tests/test_manual_cluster.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/kqueen/middleware.py b/kqueen/middleware.py index 00127bb4..f1985472 100644 --- a/kqueen/middleware.py +++ b/kqueen/middleware.py @@ -34,7 +34,6 @@ def record_request_data(response): def check_prometheus(): is_gunicorn = "gunicorn" in os.environ.get("SERVER_SOFTWARE", "") - if 'prometheus_multiproc_dir' in os.environ: os.makedirs(os.environ['prometheus_multiproc_dir'], exist_ok=True) diff --git a/kqueen/tests/test_manual_cluster.py b/kqueen/tests/test_manual_cluster.py index 48086e0b..7b3e9377 100644 --- a/kqueen/tests/test_manual_cluster.py +++ b/kqueen/tests/test_manual_cluster.py @@ -67,8 +67,6 @@ def create_cluster(self): content_type='application/json', ) - content = response.data.decode(response.charset) - assert response.status_code == 200 self.cluster_id = response.json['id']