Skip to content

Commit 0c77ad5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent af03765 commit 0c77ad5

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

pydra/engine/tests/test_workflow.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,31 +40,30 @@ def test_wf_no_input_spec():
4040

4141
def test_wf_specinfo_input_spec():
4242
input_spec = SpecInfo(
43-
name='Input',
43+
name="Input",
4444
fields=[
45-
('a', str, '',{'mandatory': True}),
46-
('b', dict, {"foo": 1, "bar": False}, {'mandatory': False}),
45+
("a", str, "", {"mandatory": True}),
46+
("b", dict, {"foo": 1, "bar": False}, {"mandatory": False}),
4747
],
4848
bases=(BaseSpec,),
4949
)
5050
wf = Workflow(
5151
name="workflow",
5252
input_spec=input_spec,
5353
)
54-
for x in ['a', 'b']:
54+
for x in ["a", "b"]:
5555
assert hasattr(wf.inputs, x)
56-
assert wf.inputs.a == ''
56+
assert wf.inputs.a == ""
5757
assert wf.inputs.b == {"foo": 1, "bar": False}
5858
bad_input_spec = SpecInfo(
59-
name='Input',
59+
name="Input",
6060
fields=[
61-
('a', str, {'mandatory': True}),
61+
("a", str, {"mandatory": True}),
6262
],
63-
bases=(ShellSpec,)
63+
bases=(ShellSpec,),
6464
)
6565
with pytest.raises(
66-
ValueError,
67-
match="Provided SpecInfo must have BaseSpec as it's base."
66+
ValueError, match="Provided SpecInfo must have BaseSpec as it's base."
6867
):
6968
Workflow(name="workflow", input_spec=bad_input_spec)
7069

0 commit comments

Comments
 (0)