From d8bde6316c75fcf951d39dfb61884541789297b2 Mon Sep 17 00:00:00 2001 From: fspreck <f.spreckelsen@indiscale.com> Date: Thu, 25 Jun 2020 13:00:08 +0200 Subject: [PATCH] STY: autopep --- unittests/test_error_handling.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unittests/test_error_handling.py b/unittests/test_error_handling.py index 7a6b4152..9962a0df 100644 --- a/unittests/test_error_handling.py +++ b/unittests/test_error_handling.py @@ -75,7 +75,7 @@ def test_entity_does_not_exist_error(): raise_errors(ent) # There should be exactly one child assert len(e.errors) == 1 - err = e.errors[0] + err=e.errors[0] # check type and entity of only child assert isinstance(err, EntityDoesNotExistError) assert err.entity.name == ent.name @@ -98,9 +98,9 @@ def test_authorization_exception(): def test_unqualified_parents_error(): """Code 116; parent does not exist""" - code = 116 - entity_does_not_exist_code = 101 - parent = _add_error_message_to_entity( + code=116 + entity_does_not_exist_code=101 + parent=_add_error_message_to_entity( db.RecordType(name="TestParent"), entity_does_not_exist_code) rec = _add_error_message_to_entity(db.Record(name="TestRecord"), -- GitLab