Skip to content
Snippets Groups Projects
Verified Commit 3a3fac16 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

STY: autopep8'ed test_state and test_affiliation

parent 0cec1c7d
No related branches found
No related tags found
1 merge request!3F fsm
Pipeline #6366 passed
...@@ -65,7 +65,6 @@ def teardown(): ...@@ -65,7 +65,6 @@ def teardown():
def test_affiliation_there(): def test_affiliation_there():
par = db.RecordType(name="TestRT1") par = db.RecordType(name="TestRT1")
ch = db.Record(name="TestRec").add_parent(par) ch = db.Record(name="TestRec").add_parent(par)
print(ch)
assert_is_not_none(ch.get_parent("TestRT1")) assert_is_not_none(ch.get_parent("TestRT1"))
assert_true(hasattr(ch.get_parent("TestRT1"), "affiliation")) assert_true(hasattr(ch.get_parent("TestRT1"), "affiliation"))
......
...@@ -763,7 +763,9 @@ def test_unauthorized_initial(): ...@@ -763,7 +763,9 @@ def test_unauthorized_initial():
rec_retrieve = db.Record(id=rec.id).retrieve() rec_retrieve = db.Record(id=rec.id).retrieve()
assert rec_retrieve.state == db.State(model="Model1", name="State1") assert rec_retrieve.state == db.State(model="Model1", name="State1")
@pytest.mark.xfail(reason="This is a very special corner case bug with low severity")
@pytest.mark.xfail(
reason="This is a very special corner case bug with low severity")
def test_transitions_included_after_empty_update(): def test_transitions_included_after_empty_update():
rec = db.Record() rec = db.Record()
rec.description = "old description" rec.description = "old description"
...@@ -787,7 +789,6 @@ def test_transitions_included_after_empty_update(): ...@@ -787,7 +789,6 @@ def test_transitions_included_after_empty_update():
from_state="State2", from_state="State2",
to_state="State2")} to_state="State2")}
rec_update_2 = rec_update.update(sync=False) rec_update_2 = rec_update.update(sync=False)
# this fails # this fails
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment