Skip to content

Commit 7228e3d

Browse files
committed
removed nextflow_config; added passing test (files_exist)
1 parent d6309e7 commit 7228e3d

File tree

3 files changed

+20
-35
lines changed

3 files changed

+20
-35
lines changed

tests/lint/files_exist.py

+10
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,14 @@ def test_files_exist_depreciated_file(self):
4040

4141
results = lint_obj.files_exist()
4242
assert results["failed"] == ["File must be removed: `parameters.settings.json`"]
43+
44+
def test_files_exist_pass(self):
45+
"""Lint check should pass if all files are there"""
4346

47+
new_pipeline = self._make_pipeline_copy()
48+
lint_obj = nf_core.lint.PipelineLint(new_pipeline)
49+
lint_obj._load()
50+
51+
results = lint_obj.files_exist()
52+
assert results["failed"] == []
53+

tests/lint/nextflow_config.py

-32
This file was deleted.

tests/test_lint.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,16 @@ def test_sphinx_rst_files(self):
182182
test_actions_awsfulltest_fail,
183183
)
184184
from lint.actions_awstest import test_actions_awstest_pass, test_actions_awstest_fail
185-
from lint.files_exist import test_missing_config, test_missing_main, test_depreciated_file
186-
from lint.licence import test_mit_licence_pass, test_mit_licence_fail
187-
from lint.nextflow_config import test_config_variable_example_pass, test_config_variable_fail
185+
from lint.files_exist import (
186+
test_files_exist_missing_config,
187+
test_files_exist_missing_main,
188+
test_files_exist_depreciated_file,
189+
test_files_exist_pass
190+
)
191+
from lint.licence import (
192+
test_licence_pass,
193+
test_licence_fail
194+
)
188195
from lint.actions_branch_protection import (
189196
test_actions_branch_protection_pass,
190197
test_actions_branch_protection_fail,

0 commit comments

Comments
 (0)