File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -42,17 +42,23 @@ def test_validate_inputs(self):
42
42
var1 = op1 ()
43
43
var2 = op2 ()
44
44
45
- with pytest .raises (TypeError ):
45
+ with pytest .raises (TypeError , match = "'Variable' object is not iterable" ):
46
46
FunctionGraph (var1 , [var2 ])
47
47
48
- with pytest .raises (TypeError ):
48
+ with pytest .raises (TypeError , match = "'Variable' object is not reversible" ):
49
49
FunctionGraph ([var1 ], var2 )
50
50
51
- with pytest .raises (ValueError ):
51
+ with pytest .raises (
52
+ ValueError ,
53
+ match = (
54
+ "One of the provided inputs is the output of an already existing node. "
55
+ "If that is okay, either discard that input's owner or use graph.clone."
56
+ ),
57
+ ):
52
58
var3 = op1 (var1 )
53
59
FunctionGraph ([var3 ], [var2 ], clone = False )
54
60
55
- with pytest .raises (ValueError ):
61
+ with pytest .raises (ValueError , match = "No outputs specified" ):
56
62
var3 = op1 (var1 )
57
63
FunctionGraph ([var3 ], clone = False )
58
64
You can’t perform that action at this time.
0 commit comments