File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ $ pip install --user --upgrade --pre libtmux
14
14
15
15
<!-- Maintainers and contributors: Insert change notes for the next release above -->
16
16
17
+ ### Tests
18
+
19
+ - pytest: Fix ` usefixture ` warning (#519 )
20
+
17
21
## libtmux 0.27.1 (2024-02-07)
18
22
19
23
### Packaging
Original file line number Diff line number Diff line change @@ -47,12 +47,19 @@ def set_home(
47
47
monkeypatch .setenv ("HOME" , str (user_path ))
48
48
49
49
50
+ @pytest .fixture (autouse = True , scope = "function" )
51
+ def setup_fn (
52
+ clear_env : None ,
53
+ ) -> None :
54
+ """Function-level test configuration fixtures for pytest."""
55
+ pass
56
+
57
+
50
58
@pytest .fixture (autouse = True , scope = "session" )
51
- @pytest .mark .usefixtures ("clear_env" )
52
- def setup (
59
+ def setup_session (
53
60
request : pytest .FixtureRequest ,
54
61
config_file : pathlib .Path ,
55
62
) -> None :
56
- """Configure test fixtures for pytest."""
63
+ """Session-level test configuration for pytest."""
57
64
if USING_ZSH :
58
65
request .getfixturevalue ("zshrc" )
You can’t perform that action at this time.
0 commit comments