@@ -40,31 +40,30 @@ def test_wf_no_input_spec():
40
40
41
41
def test_wf_specinfo_input_spec ():
42
42
input_spec = SpecInfo (
43
- name = ' Input' ,
43
+ name = " Input" ,
44
44
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 }),
47
47
],
48
48
bases = (BaseSpec ,),
49
49
)
50
50
wf = Workflow (
51
51
name = "workflow" ,
52
52
input_spec = input_spec ,
53
53
)
54
- for x in ['a' , 'b' ]:
54
+ for x in ["a" , "b" ]:
55
55
assert hasattr (wf .inputs , x )
56
- assert wf .inputs .a == ''
56
+ assert wf .inputs .a == ""
57
57
assert wf .inputs .b == {"foo" : 1 , "bar" : False }
58
58
bad_input_spec = SpecInfo (
59
- name = ' Input' ,
59
+ name = " Input" ,
60
60
fields = [
61
- ('a' , str , {' mandatory' : True }),
61
+ ("a" , str , {" mandatory" : True }),
62
62
],
63
- bases = (ShellSpec ,)
63
+ bases = (ShellSpec ,),
64
64
)
65
65
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."
68
67
):
69
68
Workflow (name = "workflow" , input_spec = bad_input_spec )
70
69
0 commit comments