When defining a fixture in the same module as where it is used, the function argument shadows the fixture name, which a) annoys pylint and b) can lead to bugs where you forget to request a fixture into a test method. This allows one to define fixtures with a different name than the name of the function, bypassing that problem. |
||
|---|---|---|
| .. | ||
| collect.py | ||
| fixture.py | ||
| integration.py | ||
| metafunc.py | ||
| raises.py | ||