1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
"""
Example test file demonstrating undeclared fixture detection.
This file intentionally has fixtures used in function bodies without
declaring them as parameters, to test the diagnostic and code action features.
"""
"""
This test uses sample_fixture without declaring it as a parameter.
The LSP should warn about this and offer a code action to fix it.
"""
# This should trigger a warning: sample_fixture used but not declared
=
assert == 42
"""
This test properly declares sample_fixture as a parameter.
No warning should be shown.
"""
=
assert == 42
"""
This test uses multiple fixtures without declaring them.
Should show warnings for both.
"""
# Both should trigger warnings
=
=
assert == 42
assert ==
"""
This test declares one fixture but uses another without declaring it.
"""
# sample_fixture is declared, so no warning
=
# another_fixture is NOT declared, should warn
=
assert == 42
assert ==