Skip to content

Commit 1ffbe84

Browse files
committed
tests(conftest): Use -x and -y for Session fixture
1 parent 8a59203 commit 1ffbe84

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ def monkeypatch_plugin_test_packages(monkeypatch: pytest.MonkeyPatch) -> None:
7373
monkeypatch.syspath_prepend(os.path.abspath(os.path.relpath(path)))
7474

7575

76+
@pytest.fixture(scope="function")
77+
def session_params(session_params: t.Dict[str, t.Any]) -> t.Dict[str, t.Any]:
78+
session_params.update({"x": 800, "y": 600})
79+
return session_params
80+
81+
7682
@pytest.fixture(scope="function")
7783
def socket_name(request: pytest.FixtureRequest) -> str:
7884
return "tmuxp_test%s" % next(namer)

0 commit comments

Comments
 (0)