Commit dec056e
committed
pytestplugin: make "target" a parametrized fixture
This allows users to run their pytest test scripts with an
LG_ENV/--lg-env that has multiple targets instead of forcing the user to
define one named "main" in order to run the tests.
One of the downsides of this implementation is that autogenerated doc
wouldn't define the "target" fixture anymore as it is entirely
programmatically defined.
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>1 parent b67bfc1 commit dec056e
2 files changed
+33
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
59 | 91 | | |
60 | 92 | | |
61 | 93 | | |
| |||
116 | 148 | | |
117 | 149 | | |
118 | 150 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | 151 | | |
131 | 152 | | |
132 | 153 | | |
| |||
0 commit comments