Skip to content

[ENH] Ensure conditional running of recently added tests #997

@fkiraly

Description

@fkiraly

A larger number of tests have been recently added and merged. Most of these are specific for individual regressors or probability distributions.

To the object/estimator specific tests, we should add decorators that ensure they run on CI only if the underlying class has changed. The following decorator will do that:

@pytest.mark.skipif(
    not run_test_for_class(ClassName),
    reason="run test only if tested object has changed",
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions