Skip to content

Commit

Permalink
Fix import dm.DatasetSubset (#2324)
Browse files Browse the repository at this point in the history
Signed-off-by: Kim, Vinnam <[email protected]>
  • Loading branch information
vinnamkim authored Jul 10, 2023
1 parent e67d261 commit 344f526
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/core/data/manager/test_dataset_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
from typing import List
from tempfile import TemporaryDirectory

import datumaro as dm
import pytest

from datumaro.components.dataset import DatasetSubset
from otx.cli.manager.config_manager import TASK_TYPE_TO_SUPPORTED_FORMAT
from otx.core.data.manager.dataset_manager import DatasetManager
from tests.test_suite.e2e_test_system import e2e_pytest_unit
Expand Down Expand Up @@ -51,7 +51,7 @@ def test_get_train_dataset(self, task: List[str], subset: List[str]):
DatasetManager.get_train_dataset(self.dataset[subset][task])
else:
train_dataset = DatasetManager.get_train_dataset(self.dataset[subset][task])
assert isinstance(train_dataset, dm.DatasetSubset)
assert isinstance(train_dataset, DatasetSubset)

@e2e_pytest_unit
@pytest.mark.parametrize("task", AVAILABLE_TASKS)
Expand All @@ -61,7 +61,7 @@ def test_get_val_dataset(self, task: List[str], subset: List[str]):
assert DatasetManager.get_val_dataset(self.dataset[subset][task]) is None
else:
val_dataset = DatasetManager.get_val_dataset(self.dataset[subset][task])
assert isinstance(val_dataset, dm.DatasetSubset)
assert isinstance(val_dataset, DatasetSubset)

@e2e_pytest_unit
@pytest.mark.parametrize("data_root", AVAILABLE_DATA_ROOTS)
Expand Down

0 comments on commit 344f526

Please sign in to comment.