Skip to content

Dependencies between xunit-style setups and the other fixtures #5949

@stanislavlevin

Description

@stanislavlevin

#4091 introduced a nice feature employed xunit-style setups and unittest definitions as internal fixtures.

But unfortunately, it looks like there is no way to make a strict order of fixture setup as It made in case of regular ones. Yes, sure, setup*/teardown* have
their own fixture names, but they are internal, for example:

_Class__pytest_setup_class
_UnitTestCase__pytest_class_setup

I couldn't rely on them since they are not documented and could be different from release to release.

The second problem that even if I drop xunit/unittest setups I can't forbid their usage by Pytest means.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: fixturesanything involving fixtures directly or indirectly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions