Skip to content

Commit a5eba0a

Browse files
committed
chore(pytest_plugin,test_dataclasses) PT001
ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes; ruff format . Fixed 5 errors: - src/libtmux/pytest_plugin.py: 4 × PT001 (pytest-fixture-incorrect-parentheses-style) - tests/test_dataclasses.py: 1 × PT001 (pytest-fixture-incorrect-parentheses-style)
1 parent ae55a6a commit a5eba0a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/libtmux/pytest_plugin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def config_file(user_path: pathlib.Path) -> pathlib.Path:
7777
return c
7878

7979

80-
@pytest.fixture()
80+
@pytest.fixture
8181
def clear_env(monkeypatch: pytest.MonkeyPatch) -> None:
8282
"""Clear out any unnecessary environment variables that could interrupt tests.
8383
@@ -105,7 +105,7 @@ def clear_env(monkeypatch: pytest.MonkeyPatch) -> None:
105105
monkeypatch.delenv(k)
106106

107107

108-
@pytest.fixture()
108+
@pytest.fixture
109109
def server(
110110
request: pytest.FixtureRequest,
111111
monkeypatch: pytest.MonkeyPatch,
@@ -146,7 +146,7 @@ def fin() -> None:
146146
return server
147147

148148

149-
@pytest.fixture()
149+
@pytest.fixture
150150
def session_params() -> t.Dict[str, t.Any]:
151151
"""Return new, temporary :class:`libtmux.Session`.
152152
@@ -184,7 +184,7 @@ def session_params() -> t.Dict[str, t.Any]:
184184
return {}
185185

186186

187-
@pytest.fixture()
187+
@pytest.fixture
188188
def session(
189189
request: pytest.FixtureRequest,
190190
session_params: t.Dict[str, t.Any],

tests/test_dataclasses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def test_pane(
136136
assert new_pane_2.window_id == new_pane.window_id
137137

138138

139-
@pytest.fixture()
139+
@pytest.fixture
140140
def session(session: Session) -> Session:
141141
"""Verify creating Session with Session.from_session_id()."""
142142
assert session.session_id is not None

0 commit comments

Comments
 (0)