Skip to content

Commit

Permalink
Update test case implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
sovrasov committed Dec 20, 2024
1 parent 168ce9d commit 0a69e8a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/unit/core/types/test_export.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

from copy import deepcopy

import pytest
from otx.core.config.data import TileConfig
from otx.core.types.export import TaskLevelExportParameters
Expand Down Expand Up @@ -55,13 +57,14 @@ def test_wrap(fxt_label_info, task_type):
assert ("model_info", "otx_version") in metadata


def test_wrap_label_consistency(fxt_label_info):
fxt_label_info.label_ids.append("new id")
print(fxt_label_info)
def test_to_metadata_label_consistency(fxt_label_info):
label_info = deepcopy(fxt_label_info)
label_info.label_ids.append("new id")

params = TaskLevelExportParameters(
model_type="dummy model",
task_type="instance_segmentation",
label_info=fxt_label_info,
label_info=label_info,
optimization_config={},
)

Expand Down

0 comments on commit 0a69e8a

Please sign in to comment.