Skip to content

Commit

Permalink
isort the test file
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Jan 17, 2024
1 parent 3803bf7 commit be5f9e1
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions datalad_container/extractors/tests/test_metalad_container.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
import os.path as op
import pytest
import subprocess
import sys
from pathlib import Path
from shutil import which
from unittest.mock import patch

import pytest
from datalad.support.external_versions import (
UnknownVersion,
external_versions,
)
# Early detection before we try to import meta_extract
from datalad.tests.utils_pytest import SkipTest # noqa: E402, isort:skip
from datalad.support.external_versions import external_versions, UnknownVersion # noqa: E402, isort:skip
from datalad.tests.utils_pytest import SkipTest

if not external_versions["datalad_metalad"]:
raise SkipTest("skipping metalad tests")

Check warning on line 17 in datalad_container/extractors/tests/test_metalad_container.py

View check run for this annotation

Codecov / codecov/patch

datalad_container/extractors/tests/test_metalad_container.py#L17

Added line #L17 was not covered by tests

from datalad.api import (
clone,
Dataset,
clone,
meta_extract,
)
from datalad.cmd import (
Expand All @@ -40,7 +44,9 @@
raise SkipTest("skipping singularity/apptainer tests")

# Must come after skiptest or imports will not work
from datalad_container.extractors.metalad_container import MetaladContainerInspect
from datalad_container.extractors.metalad_container import (
MetaladContainerInspect,
)


@with_tempfile
Expand Down

0 comments on commit be5f9e1

Please sign in to comment.