Skip to content

Commit d041d05

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 44e8094 commit d041d05

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
@@ -59,7 +59,7 @@ def xdg_config_path(
5959
return p
6060

6161

62-
@pytest.fixture()
62+
@pytest.fixture
6363
def config_path(
6464
xdg_config_path: pathlib.Path,
6565
request: pytest.FixtureRequest,
@@ -84,7 +84,7 @@ def set_xdg_config_path(
8484
monkeypatch.setenv("XDG_CONFIG_HOME", str(xdg_config_path))
8585

8686

87-
@pytest.fixture()
87+
@pytest.fixture
8888
def repos_path(user_path: pathlib.Path, request: pytest.FixtureRequest) -> pathlib.Path:
8989
"""Return temporary directory for repository checkout guaranteed unique."""
9090
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)