Skip to content

Commit ba259d3

Browse files
author
Andrei Neagu
committed
fixed errors common-library
1 parent 13feb16 commit ba259d3

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

packages/common-library/tests/test_errors_classes.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,3 @@ class MyError(OsparcErrorMixin, ValueError):
161161
"message": "42 and 'missing=?'",
162162
"value": 42,
163163
}
164-
165-
166-
def test_exception_context():
167-
class MyError(OsparcErrorMixin, ValueError):
168-
msg_template = "{value} and {missing}"
169-
170-
exc = MyError(value=42, missing="foo", extra="bar")
171-
assert exc.error_context() == {"value": 42, "missing": "foo", "extra": "bar"}
172-
173-
exc = MyError(value=42)
174-
assert exc.error_context() == {"value": 42}

0 commit comments

Comments
 (0)