Skip to content

Support pyproject configuration #732

Description

@bashtage

Description

I would like to globally diable resetting the seed so that a standard pytest run would be equivalent to adding the --randomly-dont-reset-seed flag. As far as I can tell, pytest-randomly does not support reading pyproject.toml sections for flags like these.

My use case is that I am checking that we do not use the global NumPy RandomState generator, and they way I do this is to check the state before and after a test to make sure they are the same. pytest-randomly affects the seed between these and so the global fixture (autouse=True type) fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions