-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
topic: fixturesanything involving fixtures directly or indirectlyanything involving fixtures directly or indirectlytype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Description
When using a fixuture with the package scope, the request object is not of the expected type. To be accurate, the request.node is of type Session when one could expect it to be of type Package.
Versions:
- python 3.7.16
- pytest 7.3.1
Example:
import pytest
@pytest.fixture(scope="package")
def package_fixture(request):
assert False, (type(request.node), request.node)
def test_fixture(package_fixture):
pass
Metadata
Metadata
Assignees
Labels
topic: fixturesanything involving fixtures directly or indirectlyanything involving fixtures directly or indirectlytype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch