From 9b42e9a5418982ce1943fe70c99ee67c56e6cc69 Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Tue, 31 Aug 2021 15:28:00 +0200 Subject: [PATCH] STY: autopep8'ed test_issues_server.py --- tests/test_issues_server.py | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/tests/test_issues_server.py b/tests/test_issues_server.py index 6de33d8..669c3b1 100644 --- a/tests/test_issues_server.py +++ b/tests/test_issues_server.py @@ -262,41 +262,39 @@ def test_issue_131(): def test_issue_170(): """update scalar data type to list data type""" p = db.Property(name="TestProp1", datatype=db.LIST(db.INTEGER)) - p.value = [1,2] - p.insert() # works + p.value = [1, 2] + p.insert() # works p2 = db.execute_query("FIND TestProp1", unique=True) assert p2.datatype == db.LIST(db.INTEGER) - assert p2.value == [1,2] + assert p2.value == [1, 2] p.description = "TestDescription" - p.update() # fails + p.update() # fails p2 = db.execute_query("FIND TestProp1", unique=True) assert p2.datatype == db.LIST(db.INTEGER) - assert p2.value == [1,2] + assert p2.value == [1, 2] assert p2.description == "TestDescription" - p = db.Property(name="TestProp2", datatype=db.DOUBLE) - p.insert() # works + p.insert() # works p.datatype = db.LIST(db.INTEGER) - p.update() # works + p.update() # works p2 = db.execute_query("FIND TestProp1", unique=True) assert p2.datatype == db.LIST(db.INTEGER) - assert p2.value == [1,2] + assert p2.value == [1, 2] p2.value = [1, 2] - p2.update() # fails - + p2.update() # fails p = db.Property(name="TestProp3", datatype=db.DOUBLE) - p.insert() # works + p.insert() # works p.datatype = db.LIST(db.INTEGER) p.value = [1, 2] - p.update() # fails + p.update() # fails p2 = db.execute_query("FIND TestProp1", unique=True) assert p2.datatype == db.LIST(db.INTEGER) - assert p2.value == [1,2] + assert p2.value == [1, 2] -- GitLab