Skip to content

fixtures: --fixtures/--fixtures-per-test don't go through pytest_collection #15049

Description

@bluetech

These two modes currently use session.perform_collect() directly to perform the collection.

I don't see a reason for them to bypass the regular collection hook. If plugins do things with the hook on a regular run, they should do it for these two modes as well, just as they do with --collect-only.

This could possibly cause some breakage (though unlikely I think), so let's schedule this for pytest 10.0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

topic: collectionrelated to the collection phasetopic: fixturesanything involving fixtures directly or indirectlytype: backward compatibilitymight present some backward compatibility issues which should be carefully noted in the changelog

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions