Skip to content

Commit 83bec5a

Browse files
committed
tests: Ruff fixes
Fixed 5 errors: - conftest.py: 2 × PT001 (pytest-fixture-incorrect-parentheses-style) - tests/test_config.py: 1 × PT001 (pytest-fixture-incorrect-parentheses-style) - tests/test_config_file.py: 2 × PT001 (pytest-fixture-incorrect-parentheses-style)
1 parent a5e288d commit 83bec5a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def xdg_config_path(
5656
return p
5757

5858

59-
@pytest.fixture()
59+
@pytest.fixture
6060
def config_path(
6161
xdg_config_path: pathlib.Path,
6262
request: pytest.FixtureRequest,
@@ -81,7 +81,7 @@ def set_xdg_config_path(
8181
monkeypatch.setenv("XDG_CONFIG_HOME", str(xdg_config_path))
8282

8383

84-
@pytest.fixture()
84+
@pytest.fixture
8585
def repos_path(user_path: pathlib.Path, request: pytest.FixtureRequest) -> pathlib.Path:
8686
"""Return temporary directory for repository checkout guaranteed unique."""
8787
path = user_path / "repos"

tests/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __call__(
2424
...
2525

2626

27-
@pytest.fixture()
27+
@pytest.fixture
2828
def load_yaml(tmp_path: pathlib.Path) -> LoadYAMLFn:
2929
"""Return a yaml loading function that uses temporary directory path."""
3030

tests/test_config_file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
from .helpers import EnvironmentVarGuard, load_raw, write_config
1616

1717

18-
@pytest.fixture()
18+
@pytest.fixture
1919
def yaml_config(config_path: pathlib.Path) -> pathlib.Path:
2020
"""Ensure and return vcspull yaml configuration file path."""
2121
yaml_file = config_path / "repos1.yaml"
2222
yaml_file.touch()
2323
return yaml_file
2424

2525

26-
@pytest.fixture()
26+
@pytest.fixture
2727
def json_config(config_path: pathlib.Path) -> pathlib.Path:
2828
"""Ensure and return vcspull json configuration file path."""
2929
json_file = config_path / "repos2.json"

0 commit comments

Comments
 (0)