File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: BSD-3-Clause
22# Copyright (c) 2025 Scipp contributors (https://github.com/scipp)
3+ import pathlib
4+
35import pytest
46import scipp as sc
57
810
911
1012@pytest .fixture (params = [get_small_mcstas ])
11- def mcstas_file_path (request : pytest .FixtureRequest ) -> str :
13+ def mcstas_file_path (request : pytest .FixtureRequest ) -> pathlib . Path :
1214 return request .param ()
1315
1416
Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: BSD-3-Clause
22# Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
3+ import pathlib
4+
35import pandas as pd
46import pytest
57import sciline as sl
2628
2729
2830@pytest .fixture (params = [get_small_mcstas ])
29- def mcstas_file_path (request : pytest .FixtureRequest ) -> str :
31+ def mcstas_file_path (request : pytest .FixtureRequest ) -> pathlib . Path :
3032 return request .param ()
3133
3234
3335@pytest .fixture
34- def mcstas_workflow (mcstas_file_path : str ) -> sl .Pipeline :
36+ def mcstas_workflow (mcstas_file_path : pathlib . Path ) -> sl .Pipeline :
3537 return sl .Pipeline (
3638 [
3739 * load_providers ,
@@ -59,7 +61,9 @@ def multi_bank_mcstas_workflow(mcstas_workflow: sl.Pipeline) -> sl.Pipeline:
5961 return pl
6062
6163
62- def test_pipeline_builder (mcstas_workflow : sl .Pipeline , mcstas_file_path : str ) -> None :
64+ def test_pipeline_builder (
65+ mcstas_workflow : sl .Pipeline , mcstas_file_path : pathlib .Path
66+ ) -> None :
6367 assert mcstas_workflow .get (FilePath ).compute () == mcstas_file_path
6468
6569
You can’t perform that action at this time.
0 commit comments