aboutsummaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
authorBonfaceKilz2021-03-15 15:15:28 +0300
committerBonfaceKilz2021-03-15 15:15:28 +0300
commitf464a4bee6ce3b4e79870b3b14fce07d360b7386 (patch)
tree3cc50a84c23c6919bd9f3a2276019e85a02cf9bc /tests/integration
parent9ab0e87ab7f016cea5b12f9dd96af00b561a8493 (diff)
downloadgenenetwork3-f464a4bee6ce3b4e79870b3b14fce07d360b7386.tar.gz
Apply pep-8 formatting
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/test_correlation.py18
1 files changed, 9 insertions, 9 deletions
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)