Skip to content

built-in fixtures and multiple scopes #6888

@sashkab

Description

@sashkab

Currently if I need to create a fixture which has scope other than function, I have to re-implement every built-in fixture locally. If pytest does not support calling fixtures with multiple scopes, it should at least provide built-in fixtures with multiple scope. For example:

  • monkeypatch
  • monkeypatch_session
  • monkeypatch_module

Same goes for tmpdir, tmp_path, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: fixturesanything involving fixtures directly or indirectlytype: enhancementnew feature or API change, should be merged into features branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions