Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiltsov-max committed Aug 3, 2020
1 parent bef0927 commit 0974d88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions datumaro/tests/test_ops.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import numpy as np

from datumaro.components.extractor import (Extractor, DatasetItem, Label,
Mask, Bbox, Points, LabelCategories, AnnotationType, Caption)
Mask, Bbox, Points, Caption)
from datumaro.components.project import Dataset
from datumaro.components.operations import mean_std, compute_ann_statistics

from unittest import TestCase
Expand Down Expand Up @@ -128,6 +129,6 @@ def test_stats(self):
},
}

actual = compute_ann_statistics(TestExtractor())
actual = compute_ann_statistics(dataset)

self.assertEqual(expected, actual)

0 comments on commit 0974d88

Please sign in to comment.