Skip to content

Commit 3d5e459

Browse files
committed
tests: address B908 by only checking one statement for the expected exception
1 parent 84d8b8a commit 3d5e459

File tree

2 files changed

+138
-148
lines changed

2 files changed

+138
-148
lines changed

tests/test_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ def test_get_default_id_from_graph() -> None:
111111

112112
def test_get_default_id_from_graph_without_main() -> None:
113113
"""Test that loading the default id of a CWL document with $graph property and no `#main` id throws an error.""" # noqa: B950
114+
uri = Path(get_data("testdata/js-expr-req-wf.cwl")).resolve().as_uri()
114115
with raises(GraphTargetMissingException):
115-
uri = Path(get_data("testdata/js-expr-req-wf.cwl")).resolve().as_uri()
116116
load_document_by_uri(uri)
117117

118118

0 commit comments

Comments
 (0)