From 7541d976e8693d14880913814448777a36d48c2f Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Fri, 24 Apr 2020 17:31:06 +0200
Subject: [PATCH] STY: autopep8'ed

---
 src/caosdb/apiutils.py     | 1 +
 unittests/test_apiutils.py | 2 +-
 unittests/test_entity.py   | 4 ----
 3 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/caosdb/apiutils.py b/src/caosdb/apiutils.py
index cda2c09b..f9c4148f 100644
--- a/src/caosdb/apiutils.py
+++ b/src/caosdb/apiutils.py
@@ -686,6 +686,7 @@ def apply_to_ids(entities, func):
     for entity in entities:
         _apply_to_ids_of_entity(entity, func)
 
+
 def _apply_to_ids_of_entity(entity, func):
     entity.id = func(entity.id)
 
diff --git a/unittests/test_apiutils.py b/unittests/test_apiutils.py
index 6705cdeb..cdf82ed3 100644
--- a/unittests/test_apiutils.py
+++ b/unittests/test_apiutils.py
@@ -48,7 +48,7 @@ def test_pickle_object():
 def test_apply_to_ids():
     parent = db.RecordType(id=3456)
     rec = db.Record(id=23)
-    p = db.Property(id=23345, datatype = db.INTEGER)
+    p = db.Property(id=23345, datatype=db.INTEGER)
     rec.add_parent(parent)
     rec.add_property(p)
 
diff --git a/unittests/test_entity.py b/unittests/test_entity.py
index 64f18039..d877e1ab 100644
--- a/unittests/test_entity.py
+++ b/unittests/test_entity.py
@@ -32,14 +32,12 @@ from caosdb.connection.mockup import MockUpServerConnection
 
 class TestEntity(unittest.TestCase):
 
-
     def setUp(self):
         self.assertIsNotNone(Entity)
         configure_connection(url="unittests", username="testuser",
                              password="testpassword", timeout=200,
                              implementation=MockUpServerConnection)
 
-
     def test_instance_variables(self):
         entity = Entity()
         self.assertTrue(hasattr(entity, "role"))
@@ -49,13 +47,11 @@ class TestEntity(unittest.TestCase):
         self.assertTrue(hasattr(entity, "parents"))
         self.assertTrue(hasattr(entity, "properties"))
 
-
     def test_role(self):
         entity = Entity(role="TestRole")
         self.assertEqual(entity.role, "TestRole")
         entity.role = "TestRole2"
         self.assertEqual(entity.role, "TestRole2")
 
-
     def test_instanciation(self):
         self.assertRaises(Exception, Entity())
-- 
GitLab