Skip to content

Commit

Permalink
fix pipeline linting test
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed Jan 24, 2024
1 parent af40445 commit c9a4839
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,10 @@ def test_create(self, mock_create):
@mock.patch("nf_core.lint.run_linting")
def test_lint(self, mock_lint, mock_is_pipeline):
"""Test nf-core lint"""
mock_lint_results = (mock.MagicMock, mock.MagicMock)
mock_lint_results = (mock.MagicMock, mock.MagicMock, mock.MagicMock)
mock_lint_results[0].failed = []
mock_lint_results[1].failed = []
mock_lint_results[2].failed = []
mock_lint.return_value = mock_lint_results

temp_pipeline_dir = tempfile.NamedTemporaryFile()
Expand Down

0 comments on commit c9a4839

Please sign in to comment.