diff --git a/nf_core/__main__.py b/nf_core/__main__.py index 50963b662..bb4c5e708 100644 --- a/nf_core/__main__.py +++ b/nf_core/__main__.py @@ -771,7 +771,7 @@ def command_pipelines_schema_lint(directory, schema_file): """ Check that a given pipeline schema is valid. """ - pipelines_schema_lint(directory / schema_file) + pipelines_schema_lint(Path(directory, schema_file)) # nf-core pipelines schema docs @@ -818,7 +818,7 @@ def command_pipelines_schema_docs(directory, schema_file, output, format, force, """ Outputs parameter documentation for a pipeline schema. """ - pipelines_schema_docs(directory / schema_file, output, format, force, columns) + pipelines_schema_docs(Path(directory, schema_file), output, format, force, columns) # nf-core modules subcommands diff --git a/tests/test_cli.py b/tests/test_cli.py index bea0223f0..8df1e210b 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -358,7 +358,7 @@ def test_schema_lint(self, mock_get_schema_path): with open("nextflow_schema.json", "w") as f: f.write("{}") self.invoke_cli(cmd) - mock_get_schema_path.assert_called_with("nextflow_schema.json") + mock_get_schema_path.assert_called_with(Path("nextflow_schema.json")) @mock.patch("nf_core.pipelines.schema.PipelineSchema.get_schema_path") def test_schema_lint_filename(self, mock_get_schema_path): @@ -368,7 +368,7 @@ def test_schema_lint_filename(self, mock_get_schema_path): with open("some_other_filename", "w") as f: f.write("{}") self.invoke_cli(cmd) - mock_get_schema_path.assert_called_with("some_other_filename") + mock_get_schema_path.assert_called_with(Path("some_other_filename")) @mock.patch("nf_core.pipelines.create_logo.create_logo") def test_create_logo(self, mock_create_logo):