about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBonfaceKilz2022-03-10 17:22:44 +0300
committerBonfaceKilz2022-03-12 15:33:09 +0300
commit035520cd5f99fb91540831d4d46b682452675d1b (patch)
treeba5d31ed04d4008265a5f4c57561b57e5c3a2a37
parentff22132f21c35f9132f692df6af9658fbb300b70 (diff)
downloadgenenetwork3-035520cd5f99fb91540831d4d46b682452675d1b.tar.gz
Apply auto-pep8 to sample_data.py and it's test file
-rw-r--r--gn3/db/sample_data.py8
-rw-r--r--tests/unit/db/test_sample_data.py4
2 files changed, 6 insertions, 6 deletions
diff --git a/gn3/db/sample_data.py b/gn3/db/sample_data.py
index 6482116..e5c5e48 100644
--- a/gn3/db/sample_data.py
+++ b/gn3/db/sample_data.py
@@ -1,5 +1,5 @@
 from gn3.csvcmp import extract_strain_name
-from typing import Any, Tuple, Union
+from typing import Any, Tuple
 
 import MySQLdb
 
@@ -333,9 +333,9 @@ def insert_sample_data(conn: Any,  # pylint: disable=[R0913]
         # Check if the data already exists:
         with conn.cursor() as cursor:
             cursor.execute(
-                    "SELECT Id FROM PublishData where Id = %s "
-                    "AND StrainId = %s",
-                    (data_id, strain_id))
+                "SELECT Id FROM PublishData where Id = %s "
+                "AND StrainId = %s",
+                (data_id, strain_id))
         if cursor.fetchone():  # Data already exists
             return count
 
diff --git a/tests/unit/db/test_sample_data.py b/tests/unit/db/test_sample_data.py
index 80166fc..84ab1a1 100644
--- a/tests/unit/db/test_sample_data.py
+++ b/tests/unit/db/test_sample_data.py
@@ -87,7 +87,7 @@ def test_extract_actions():
                 "delete": {"data": "18", "csv_header": "Value"},
                 "insert": {"data": "2,F", "csv_header": "SE,Sex"},
                 "update": {"data": "1", "csv_header": "Count"},
-            })
+    })
     assert(__extract_actions(original_data="BXD1,18,x,0,x",
                              updated_data="BXD1,19,2,1,F",
                              csv_header="Strain Name,Value,SE,Count,Sex") ==
@@ -95,7 +95,7 @@ def test_extract_actions():
                "delete": None,
                "insert": {"data": "2,F", "csv_header": "SE,Sex"},
                "update": {"data": "19,1", "csv_header": "Value,Count"},
-           })
+    })
 
 
 @pytest.mark.unit_test