From 5cf0ad13ef69c206e19f8aaa58ecaaa7b1c1b851 Mon Sep 17 00:00:00 2001 From: Espen Hagen <2492641+espenhgn@users.noreply.github.com> Date: Mon, 27 May 2024 16:51:24 +0200 Subject: [PATCH 1/3] fix tests Fixes #39 --- tests/test_container_template.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_container_template.py b/tests/test_container_template.py index a2fa6e1..6734f2c 100644 --- a/tests/test_container_template.py +++ b/tests/test_container_template.py @@ -30,10 +30,10 @@ try: out = subprocess.run('docker') pwd = os.getcwd() - PREFIX = f'docker run -p {port}:{port} container_template' + PREFIX = f'docker run -p {port}:{port} ghcr.io/precimed/container_template' PREFIX_MOUNT = ( f'docker run -p {port}:{port} ' + - f'--mount type=bind,source={pwd},target={pwd} container_template') + f'--mount type=bind,source={pwd},target={pwd} ghcr.io/precimed/container_template') except FileNotFoundError: raise FileNotFoundError( 'Neither `singularity` nor `docker` found in PATH.' + From 544cbb996833cfaecf497520f6ed6d5740675da2 Mon Sep 17 00:00:00 2001 From: Espen Hagen <2492641+espenhgn@users.noreply.github.com> Date: Mon, 27 May 2024 16:54:17 +0200 Subject: [PATCH 2/3] break long lines --- tests/test_container_template.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_container_template.py b/tests/test_container_template.py index 6734f2c..1320bd9 100644 --- a/tests/test_container_template.py +++ b/tests/test_container_template.py @@ -30,10 +30,12 @@ try: out = subprocess.run('docker') pwd = os.getcwd() - PREFIX = f'docker run -p {port}:{port} ghcr.io/precimed/container_template' + PREFIX = (f'docker run -p {port}:{port} ' + + 'ghcr.io/precimed/container_template') PREFIX_MOUNT = ( f'docker run -p {port}:{port} ' + - f'--mount type=bind,source={pwd},target={pwd} ghcr.io/precimed/container_template') + f'--mount type=bind,source={pwd},target={pwd} ' + + 'ghcr.io/precimed/container_template') except FileNotFoundError: raise FileNotFoundError( 'Neither `singularity` nor `docker` found in PATH.' + From bd49d928b5f9cf03d09d7e048a6b6f002c927c9e Mon Sep 17 00:00:00 2001 From: Espen Hagen <2492641+espenhgn@users.noreply.github.com> Date: Mon, 27 May 2024 16:56:42 +0200 Subject: [PATCH 3/3] linting --- tests/test_container_template.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_container_template.py b/tests/test_container_template.py index 1320bd9..07624f3 100644 --- a/tests/test_container_template.py +++ b/tests/test_container_template.py @@ -30,11 +30,11 @@ try: out = subprocess.run('docker') pwd = os.getcwd() - PREFIX = (f'docker run -p {port}:{port} ' + - 'ghcr.io/precimed/container_template') + PREFIX = (f'docker run -p {port}:{port} ' + + 'ghcr.io/precimed/container_template') PREFIX_MOUNT = ( f'docker run -p {port}:{port} ' + - f'--mount type=bind,source={pwd},target={pwd} ' + + f'--mount type=bind,source={pwd},target={pwd} ' + 'ghcr.io/precimed/container_template') except FileNotFoundError: raise FileNotFoundError(