File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,30 @@ options:
6969
7070You could also read the code and override {func}` server fixtures <libtmux.pytest_plugin.server> ` 's in your own doctest. doctest.
7171
72+ (custom_session_params)=
73+
74+ ### Custom session parameters
75+
76+ You can override ` session_params ` to custom the ` session ` fixture. The
77+ dictionary will directly pass into :meth:` Server.new_sesion ` keyword arguments.
78+
79+ ``` python
80+ import pytest
81+
82+ @pytest.fixture
83+ def session_params ():
84+ return {
85+ ' x' : 800 ,
86+ ' y' : 600
87+ }
88+
89+
90+ def test_something (session ):
91+ assert session
92+ ```
93+
94+ The above will assure the libtmux session launches with ` -x 800 -y 600 ` .
95+
7296(set_home)=
7397
7498### Setting a temporary home directory
You can’t perform that action at this time.
0 commit comments