9
9
)
10
10
11
11
12
- @pytest .mark .skip ("Assigned slice has no 2D annotations" )
13
- def test_unit_test_metric_creation (CLIENT , unit_test ):
12
+ def test_unit_test_metric_creation (CLIENT , annotations , unit_test ):
14
13
# create some dataset_items for the unit test to reference
15
14
iou = CLIENT .modelci .eval_functions .bbox_iou
16
15
unit_test_metric = unit_test .add_criterion (iou () > EVAL_FUNCTION_THRESHOLD )
@@ -24,8 +23,7 @@ def test_unit_test_metric_creation(CLIENT, unit_test):
24
23
assert unit_test_metric in criteria
25
24
26
25
27
- @pytest .mark .skip ("Assigned slice has no 2D annotations" )
28
- def test_list_unit_test (CLIENT , test_slice ):
26
+ def test_list_unit_test (CLIENT , test_slice , annotations ):
29
27
test_name = "unit_test_" + get_uuid () # use uuid to make unique
30
28
31
29
e = CLIENT .modelci .eval_functions
@@ -59,7 +57,7 @@ def test_unit_test_items(CLIENT, test_slice, slice_items, annotations):
59
57
CLIENT .modelci .delete_unit_test (unit_test .id )
60
58
61
59
62
- def test_no_criteria_raises_error (CLIENT , test_slice ):
60
+ def test_no_criteria_raises_error (CLIENT , test_slice , annotations ):
63
61
test_name = "unit_test_" + get_uuid () # use uuid to make unique
64
62
with pytest .raises (CreateUnitTestError ):
65
63
CLIENT .modelci .create_unit_test (
0 commit comments