summaryrefslogtreecommitdiff
path: root/sphinx/testing/fixtures.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-02-17 22:49:04 +0000
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-02-18 01:58:05 +0000
commitf6435a9bc3a265d76b8b0c2ff06740dc7377e800 (patch)
tree5d8d2103e3667c8e69f8c285998d67116947a57d /sphinx/testing/fixtures.py
parentc8f4a03daceef4470ddbc34d5879ffd01588a116 (diff)
downloadsphinx-git-f6435a9bc3a265d76b8b0c2ff06740dc7377e800.tar.gz
Prefer ``@pytest.fixture()``
Diffstat (limited to 'sphinx/testing/fixtures.py')
-rw-r--r--sphinx/testing/fixtures.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/sphinx/testing/fixtures.py b/sphinx/testing/fixtures.py
index 6af8e0223..8e6fe36b3 100644
--- a/sphinx/testing/fixtures.py
+++ b/sphinx/testing/fixtures.py
@@ -55,7 +55,7 @@ class SharedResult:
}
-@pytest.fixture
+@pytest.fixture()
def app_params(request: Any, test_params: dict, shared_result: SharedResult,
sphinx_test_tempdir: str, rootdir: str) -> tuple[dict, dict]:
"""
@@ -98,7 +98,7 @@ def app_params(request: Any, test_params: dict, shared_result: SharedResult,
return namedtuple('app_params', 'args,kwargs')(args, kwargs) # type: ignore
-@pytest.fixture
+@pytest.fixture()
def test_params(request: Any) -> dict:
"""
Test parameters that are specified by 'pytest.mark.test_params'
@@ -187,7 +187,7 @@ def make_app(test_params: dict, monkeypatch: Any) -> Generator[Callable, None, N
app_.cleanup()
-@pytest.fixture
+@pytest.fixture()
def shared_result() -> SharedResult:
return SharedResult()
@@ -197,7 +197,7 @@ def _shared_result_cache() -> None:
SharedResult.cache.clear()
-@pytest.fixture
+@pytest.fixture()
def if_graphviz_found(app: SphinxTestApp) -> None:
"""
The test will be skipped when using 'if_graphviz_found' fixture and graphviz
@@ -223,7 +223,7 @@ def sphinx_test_tempdir(tmpdir_factory: Any) -> util.path:
return util.path(tmpdir).abspath()
-@pytest.fixture
+@pytest.fixture()
def tempdir(tmpdir: str) -> util.path:
"""
Temporary directory wrapped with `path` class.
@@ -232,7 +232,7 @@ def tempdir(tmpdir: str) -> util.path:
return util.path(tmpdir)
-@pytest.fixture
+@pytest.fixture()
def rollback_sysmodules():
"""
Rollback sys.modules to its value before testing to unload modules