1
1
from __future__ import annotations
2
2
3
+ from pathlib import Path
4
+
3
5
import pytest
4
6
from docutils import nodes
5
7
29
31
],
30
32
)
31
33
@pytest .mark .usefixtures ('rollback_sysmodules' )
32
- def test_move_module_targets (tmp_path , content ) :
34
+ def test_move_module_targets (tmp_path : Path , content : str ) -> None :
33
35
# Test for the MoveModuleTargets transform
34
36
tmp_path .joinpath ('conf.py' ).touch ()
35
37
tmp_path .joinpath ('index.rst' ).write_text (content , encoding = 'utf-8' )
@@ -48,7 +50,7 @@ def test_move_module_targets(tmp_path, content):
48
50
49
51
50
52
@pytest .mark .usefixtures ('rollback_sysmodules' )
51
- def test_move_module_targets_no_section (tmp_path ) :
53
+ def test_move_module_targets_no_section (tmp_path : Path ) -> None :
52
54
# Test for the MoveModuleTargets transform
53
55
tmp_path .joinpath ('conf.py' ).touch ()
54
56
tmp_path .joinpath ('index.rst' ).write_text (
@@ -63,7 +65,7 @@ def test_move_module_targets_no_section(tmp_path):
63
65
64
66
65
67
@pytest .mark .usefixtures ('rollback_sysmodules' )
66
- def test_move_module_targets_disabled (tmp_path ) :
68
+ def test_move_module_targets_disabled (tmp_path : Path ) -> None :
67
69
# Test for the MoveModuleTargets transform
68
70
tmp_path .joinpath ('conf.py' ).touch ()
69
71
tmp_path .joinpath ('index.rst' ).write_text (CONTENT_PY , encoding = 'utf-8' )
0 commit comments