Skip to content

Commit

Permalink
Remove unused import #367
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Druez <[email protected]>
  • Loading branch information
tdruez committed Dec 3, 2021
1 parent 853a660 commit 4187647
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scanpipe/tests/test_pipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
from django.test import override_settings

from commoncode.archive import extract_tar
from commoncode.system import on_linux
from scancode.interrupt import TimeoutError as InterruptTimeoutError

from scanpipe.models import CodebaseResource
Expand All @@ -57,6 +56,7 @@
from scanpipe.tests import package_data1

scanpipe_app = apps.get_app_config("scanpipe")
from_docker_image = os.environ.get("FROM_DOCKER_IMAGE")


class ScanPipePipesTest(TestCase):
Expand Down Expand Up @@ -275,7 +275,6 @@ def test_scanpipe_pipes_scancode_extract_archive_vmimage_qcow2(self):
input_location = Path(target) / "foobar.qcow2"

errors = scancode.extract_archive(input_location, target)
from_docker_image = os.environ.get("FROM_DOCKER_IMAGE")

# The VM image extraction features are available in the Docker image context.
if from_docker_image:
Expand Down

0 comments on commit 4187647

Please sign in to comment.