What I\'m trying to do
I\'m writing a small framework in python using pytest, and as part of the teardown I am taking a screenshot. Now, I want that scr
You can access the current file path via request.node.fspath. Example:
request.node.fspath
# conftest.py import pytest @pytest.fixture def currpath(request): return str(request.node.fspath)