Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move test utils #52

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion datumaro/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (C) 2022 CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT

import inspect
from functools import wraps
from inspect import isclass
from itertools import islice
Expand Down Expand Up @@ -195,3 +195,7 @@ def dump_json_file(
append_newline=append_newline,
)
)


def current_function_name(depth=1):
return inspect.getouterframes(inspect.currentframe())[depth].function
360 changes: 0 additions & 360 deletions datumaro/util/test_utils.py

This file was deleted.

5 changes: 3 additions & 2 deletions tests/cli/test_describe_downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@

from datumaro.components.extractor_tfds import AVAILABLE_TFDS_DATASETS, TFDS_EXTRACTOR_AVAILABLE
from datumaro.util import parse_json
from datumaro.util.test_utils import TestDir, mock_tfds_data
from datumaro.util.test_utils import run_datum as run

from ..requirements import Requirements, mark_requirement

from tests.utils.test_utils import TestDir, mock_tfds_data
from tests.utils.test_utils import run_datum as run


@skipIf(not TFDS_EXTRACTOR_AVAILABLE, reason="TFDS is not installed")
class DescribeDownloadsTest(TestCase):
Expand Down
Loading
Loading