Skip to content

Commit

Permalink
fix(1929): update subworkflow tests and add lint test markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
awgymer committed Oct 28, 2024
1 parent e508ced commit ff68ba3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# modules_structure

```{eval-rst}
.. automethod:: nf_core.pipelines.lint.PipelineLint.local_component_structure
```
4 changes: 2 additions & 2 deletions tests/subworkflows/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_subworkflows_create_succeed(self):
self.pipeline_dir, "test_subworkflow_local", "@author", True
)
subworkflow_create.create()
assert Path(self.pipeline_dir, "subworkflows", "local", "test_subworkflow_local.nf").exists()
assert Path(self.pipeline_dir, "subworkflows", "local", "test_subworkflow_local/main.nf").exists()

def test_subworkflows_create_fail_exists(self):
"""Fail at creating the same subworkflow twice"""
Expand All @@ -29,7 +29,7 @@ def test_subworkflows_create_fail_exists(self):
subworkflow_create.create()
with pytest.raises(UserWarning) as excinfo:
subworkflow_create.create()
assert "Subworkflow file exists already" in str(excinfo.value)
assert "subworkflow directory exists" in str(excinfo.value)

def test_subworkflows_create_nfcore_modules(self):
"""Create a subworkflow in nf-core/modules clone"""
Expand Down

0 comments on commit ff68ba3

Please sign in to comment.