Skip to content

ScopeMismatch on faker_seed with Faker v32.0.0Β #656

@GertBurger

Description

@GertBurger

Python Version

3.9.18

pytest Version

8.3.3

Package Version

3.15.0

Description

Since Faker v32.0.0 its faker fixture has been scoped to session which triggers this error in relation to faker_seed:

Failed: ScopeMismatch: You tried to access the function scoped fixture faker_seed with a session scoped request object. Requesting fixture stack:
../root/build_env3/lib/python3.9/site-packages/faker/contrib/pytest/plugin.py:23:  def faker(request)
Requested fixture:
../root/build_env3/lib/python3.9/site-packages/pytest_randomly/__init__.py:301:  def faker_seed(pytestconfig: 'Config') -> 'int'

joke2k/faker#2117
joke2k/faker#2055

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions