Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
pytest --fixtures drops indentation from fixture docstring #2574
When a fixture docstring has varying levels of indentation
import pytest @pytest.fixture(scope="module") def foo(request): """ Use the foo to foo the foo like this:: foo("foo") """
However I would have expected this to output:
i.e. only the smallest indentation level should be stripped away (except maybe for the first line that requires special treatment).