From f464a4bee6ce3b4e79870b3b14fce07d360b7386 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Mon, 15 Mar 2021 15:15:28 +0300 Subject: Apply pep-8 formatting --- tests/integration/test_correlation.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tests/integration') diff --git a/tests/integration/test_correlation.py b/tests/integration/test_correlation.py index b94487a..33e0de9 100644 --- a/tests/integration/test_correlation.py +++ b/tests/integration/test_correlation.py @@ -2,7 +2,6 @@ import os import json -import pickle import unittest from unittest import mock @@ -20,7 +19,6 @@ def file_path(relative_path): class CorrelationAPITest(unittest.TestCase): # currently disable """Test cases for the Correlation API""" - def setUp(self): self.app = create_app().test_client() @@ -40,18 +38,20 @@ class CorrelationAPITest(unittest.TestCase): """Test that the correct response in correlation""" compute_corr.return_value = self.correlation_results - response = self.app.post( - "/api/correlation/corr_compute", json=self.correlation_data, follow_redirects=True) + response = self.app.post("/api/correlation/corr_compute", + json=self.correlation_data, + follow_redirects=True) self.assertEqual(response.status_code, 200) @mock.patch("gn3.api.correlation.compute_correlation") - def test_corr_compute_failed_request(self,compute_corr): + def test_corr_compute_failed_request(self, compute_corr): """test taht cormpute requests fails """ - compute_corr.return_value = self.correlation_results + compute_corr.return_value = self.correlation_results - response = self.app.post( - "/api/correlation/corr_compute", json=None, follow_redirects=True) + response = self.app.post("/api/correlation/corr_compute", + json=None, + follow_redirects=True) - self.assertEqual(response.status_code,400) + self.assertEqual(response.status_code, 400) -- cgit v1.2.3