File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ def test_resource(
91
91
"""
92
92
error : Optional [str ] = None
93
93
tb : Optional = None
94
+ test_name : Optional [str ] = None
94
95
95
96
try :
96
97
rd = load_resource_description (
@@ -101,6 +102,7 @@ def test_resource(
101
102
tb = traceback .format_tb (e .__traceback__ )
102
103
else :
103
104
if isinstance (rd , Model ):
105
+ test_name = "reproduced test outputs from test inputs"
104
106
model = rd
105
107
try :
106
108
inputs = [np .load (str (in_path )) for in_path in model .test_inputs ]
@@ -145,7 +147,7 @@ def test_resource(
145
147
146
148
# todo: add tests for non-model resources
147
149
148
- return {"error" : error , "traceback" : tb }
150
+ return {"error" : error , "traceback" : tb , "name" : test_name }
149
151
150
152
151
153
def debug_model (
You can’t perform that action at this time.
0 commit comments