Skip to content

Commit c919eae

Browse files
committed
fix existing test
1 parent 12070e4 commit c919eae

1 file changed

Lines changed: 0 additions & 48 deletions

File tree

tests/semantic_segmentation/test_annotation.py

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -105,54 +105,6 @@ def test_segmentation():
105105
)
106106
assert "Received mask with shape '(1, 2)'" in str(e)
107107

108-
# test ground truths cannot overlap
109-
with pytest.raises(ValueError) as e:
110-
Segmentation(
111-
uid="uid",
112-
groundtruths=[
113-
Bitmask(
114-
mask=np.array([[True, True, True]]),
115-
label="label1",
116-
),
117-
Bitmask(
118-
mask=np.array([[False, False, True]]),
119-
label="label2",
120-
),
121-
],
122-
predictions=[
123-
Bitmask(
124-
mask=np.array([[True, False, False]]),
125-
label="label",
126-
)
127-
],
128-
shape=(1, 3),
129-
)
130-
assert "ground truth masks cannot overlap" in str(e)
131-
132-
# test predictions cannot overlap
133-
with pytest.raises(ValueError) as e:
134-
Segmentation(
135-
uid="uid",
136-
groundtruths=[
137-
Bitmask(
138-
mask=np.array([[True, True, True]]),
139-
label="label1",
140-
),
141-
],
142-
predictions=[
143-
Bitmask(
144-
mask=np.array([[True, False, True]]),
145-
label="label",
146-
),
147-
Bitmask(
148-
mask=np.array([[False, False, True]]),
149-
label="label2",
150-
),
151-
],
152-
shape=(1, 3),
153-
)
154-
assert "prediction masks cannot overlap" in str(e)
155-
156108
# allow missing ground truths
157109
Segmentation(
158110
uid="uid",

0 commit comments

Comments
 (0)