Replies: 1 comment
-
Aaaand right after I finished that ^^ it occurred to me I could try |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First, I have some working (with pytest 7) tmp_path/session fixtures to reuse a tmp_path directory containing dummy git repos. The session scope fixture is using this:
tmp_path_factory.mktemp(request.session.name)
which breaks in pytest 8.In the changelog for 8.0.0rc1 there's a note:
session.name is now ""; previously it was the rootdir directory name. This matches session.nodeid which has always been "".
But in the latest docs it still says this in the Session class:
When I run the tests with pytest 8 i get the following exception for each test:
so it's not clear if
request.session.name
is supposed to get populated or not? Is there some other attribute I should use? Or do I need to abandon my current fixtures and do something else?My current conftest.py I'd appreciate any helpful feedback. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions