From 6d5306ec6f20dc70921817815198d4b454ba3bc7 Mon Sep 17 00:00:00 2001 From: Espen Hagen <2492641+espenhgn@users.noreply.github.com> Date: Wed, 2 Oct 2024 14:24:56 +0200 Subject: [PATCH] flake8 must be happy --- tests/test_container_template.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_container_template.py b/tests/test_container_template.py index 22b2a34..4244390 100644 --- a/tests/test_container_template.py +++ b/tests/test_container_template.py @@ -19,10 +19,10 @@ sock.bind(('', 0)) port = sock.getsockname()[1] -# Check that (1) singularity or apptainer executables exist, +# Check that (1) singularity or apptainer executables exist, # and (2) if not, check for docker. # If neither are found, tests will fall back to plain python. -# This may be useful for testing on a local machine, but should +# This may be useful for testing on a local machine, but should # be revised for the particular usecase. try: pth = os.path.join('containers', 'container_template.sif') @@ -36,7 +36,8 @@ cwd = os.getcwd() PREFIX = f'singularity run {pth} python' PREFIX_MOUNT = f'singularity run --home={cwd}:/home/ {pth} python' - PREFIX_CUSTOM_MOUNT = f'singularity run --home={cwd}:/home/ ' + '{custom_mount}' + f'{pth} python' + PREFIX_CUSTOM_MOUNT = f'singularity run --home={cwd}:/home/ ' + \ + '{custom_mount}' + f'{pth} python' except FileNotFoundError: try: out = subprocess.run('docker', check=False) @@ -105,4 +106,3 @@ def test_container_template_python_packages(): call = f"{PREFIX} -c '{importstr}'" out = subprocess.run(call, shell=True) assert out.returncode == 0 -