diff --git a/tests/lint_examples/minimalworkingexample/Dockerfile b/tests/lint_examples/minimalworkingexample/Dockerfile index 708803bbb3..d5c8005c47 100644 --- a/tests/lint_examples/minimalworkingexample/Dockerfile +++ b/tests/lint_examples/minimalworkingexample/Dockerfile @@ -1,4 +1,4 @@ -FROM nfcore/base:1.11.0 +FROM nfcore/base:1.11 LABEL authors="Phil Ewels phil.ewels@scilifelab.se" \ description="Docker image containing all requirements for the nf-core tools pipeline" diff --git a/tests/test_lint.py b/tests/test_lint.py index 25d1828b09..c3243018ea 100644 --- a/tests/test_lint.py +++ b/tests/test_lint.py @@ -76,7 +76,7 @@ def test_call_lint_pipeline_pass(self): This should not result in any exception for the minimal working example""" old_nfcore_version = nf_core.__version__ - nf_core.__version__ = "1.11.0" + nf_core.__version__ = "1.11" lint_obj = nf_core.lint.run_linting(PATH_WORKING_EXAMPLE, False) nf_core.__version__ = old_nfcore_version expectations = {"failed": 0, "warned": 5, "passed": MAX_PASS_CHECKS - 1} @@ -93,7 +93,7 @@ def test_call_lint_pipeline_fail(self): def test_call_lint_pipeline_release(self): """Test the main execution function of PipelineLint when running with --release""" lint_obj = nf_core.lint.PipelineLint(PATH_WORKING_EXAMPLE) - lint_obj.version = "1.11.0" + lint_obj.version = "1.11" lint_obj.lint_pipeline(release_mode=True) expectations = {"failed": 0, "warned": 4, "passed": MAX_PASS_CHECKS + ADD_PASS_RELEASE} self.assess_lint_status(lint_obj, **expectations) @@ -390,7 +390,7 @@ def test_conda_env_skip(self): def test_conda_dockerfile_pass(self): """ Tests the conda Dockerfile test works with a working example """ lint_obj = nf_core.lint.PipelineLint(PATH_WORKING_EXAMPLE) - lint_obj.version = "1.11.0" + lint_obj.version = "1.11" lint_obj.files = ["environment.yml", "Dockerfile"] with open(os.path.join(PATH_WORKING_EXAMPLE, "Dockerfile"), "r") as fh: lint_obj.dockerfile = fh.read().splitlines() @@ -402,7 +402,7 @@ def test_conda_dockerfile_pass(self): def test_conda_dockerfile_fail(self): """ Tests the conda Dockerfile test fails with a bad example """ lint_obj = nf_core.lint.PipelineLint(PATH_WORKING_EXAMPLE) - lint_obj.version = "1.11.0" + lint_obj.version = "1.11" lint_obj.files = ["environment.yml", "Dockerfile"] lint_obj.conda_config["name"] = "nf-core-tools-0.4" lint_obj.dockerfile = ["fubar"]