From 906cf89a49aebb975841ecc926f1ddddb6cc1f85 Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Tue, 17 Nov 2020 12:08:59 +0100 Subject: [PATCH] STY: autopep8'ed new files --- src/caosdb/common/state.py | 2 ++ unittests/test_state.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/caosdb/common/state.py b/src/caosdb/common/state.py index 7b6a9ce3..eb81b343 100644 --- a/src/caosdb/common/state.py +++ b/src/caosdb/common/state.py @@ -1,4 +1,6 @@ from lxml import etree + + class State: """State diff --git a/unittests/test_state.py b/unittests/test_state.py index 7fc16363..37dc3c88 100644 --- a/unittests/test_state.py +++ b/unittests/test_state.py @@ -3,6 +3,7 @@ from caosdb import State from caosdb.common.models import parse_xml from lxml import etree + def test_state_xml(): state = State(model="model1", name="state1") xml = etree.tostring(state.to_xml()) @@ -14,6 +15,7 @@ def test_state_xml(): assert xml == etree.tostring(state.to_xml()) + def test_entity_xml(): r = db.Record() assert r.state is None @@ -24,4 +26,3 @@ def test_entity_xml(): r = parse_xml(xml) assert r.state == State(model="model1", name="state1") - -- GitLab