Skip to content

Commit 8d80941

Browse files
committed
🎨 Qualify refs to documented functions.
1 parent 2402a2c commit 8d80941

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CPAC/pipeline/engine/resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def keys(self) -> list[str]:
224224
return list(self._keys)
225225

226226
def __contains__(self, item: Any) -> bool:
227-
"""Return ``True`` if `item` in :py:method:`~Resource.keys()`, ``False`` otherwise."""
227+
"""Return ``True`` if `item` in :py:meth:`Resource.keys()`, ``False`` otherwise."""
228228
return item in self.keys()
229229

230230
def __getitem__(self, name: str) -> Any:

CPAC/pipeline/test/test_engine.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _set_up_test(
4646
def test_ingress_func_raw_data(
4747
bids_examples: Path, preconfig: str, tmp_path: Path
4848
) -> None:
49-
"""Test :py:method:`ResourcePool.ingress_raw_func_data` ."""
49+
"""Test :py:meth:`~CPAC.pipeline.engine.resource.ResourcePool.ingress_raw_func_data` ."""
5050
cfg, sub_data_dct = _set_up_test(bids_examples, preconfig, tmp_path)
5151
rpool = ResourcePool(cfg=cfg, data_paths=sub_data_dct)
5252
rpool.gather_pipes(rpool.wf, cfg, all_types=True)
@@ -56,7 +56,7 @@ def test_ingress_func_raw_data(
5656
def test_ingress_anat_raw_data(
5757
bids_examples: Path, preconfig: str, tmp_path: Path
5858
) -> None:
59-
"""Test :py:method:`ResourcePool.ingress_raw_anat_data` ."""
59+
"""Test :py:meth:`~CPAC.pipeline.engine.resource.ResourcePool.ingress_raw_anat_data` ."""
6060
cfg, sub_data_dct = _set_up_test(bids_examples, preconfig, tmp_path)
6161
rpool = ResourcePool(
6262
cfg=cfg,
@@ -70,7 +70,7 @@ def test_ingress_anat_raw_data(
7070
def test_ingress_pipeconfig_data(
7171
bids_examples: Path, preconfig: str, tmp_path: Path
7272
) -> None:
73-
"""Test :py:method:`ResourcePool.ingress_pipeconfig_paths` ."""
73+
"""Test :py:meth:`~CPAC.pipeline.engine.resource.ResourcePool.ingress_pipeconfig_paths` ."""
7474
cfg, sub_data_dct = _set_up_test(bids_examples, preconfig, tmp_path)
7575
rpool = ResourcePool(
7676
cfg=cfg,
@@ -83,7 +83,7 @@ def test_ingress_pipeconfig_data(
8383
def test_build_anat_preproc_stack(
8484
bids_examples: Path, preconfig: str, tmp_path: Path
8585
) -> None:
86-
"""Test :py:func:`~build_anat_preproc_stack` ."""
86+
"""Test :py:func:`~CPAC.pipeline.cpac_pipeline.build_anat_preproc_stack` ."""
8787
cfg, sub_data_dct = _set_up_test(bids_examples, preconfig, tmp_path)
8888

8989
rpool = ResourcePool(cfg=cfg, data_paths=sub_data_dct)
@@ -94,7 +94,7 @@ def test_build_anat_preproc_stack(
9494

9595
@pytest.mark.parametrize("preconfig", ["default"])
9696
def test_build_workflow(bids_examples: Path, preconfig: str, tmp_path: Path) -> None:
97-
"""Test :py:func:`~build_workflow` ."""
97+
"""Test :py:func:`~CPAC.pipeline.cpac_pipeline.build_workflow` ."""
9898
cfg, sub_data_dct = _set_up_test(bids_examples, preconfig, tmp_path)
9999
rpool = ResourcePool(cfg=cfg, data_paths=sub_data_dct)
100100
wf = build_workflow(sub_data_dct["subject_id"], sub_data_dct, cfg)

0 commit comments

Comments
 (0)