Skip to content

Public API for getting test method / function #544

@jelmer

Description

@jelmer

Migrated from Launchpad: https://bugs.launchpad.net/bugs/1517867

Original Reporter: Jonathan Lange
Date Created: 2015-11-19 12:05:54.040256+00:00
Status on Launchpad: Triaged
Importance: Wishlist


It'd be nice to have a public API for getting at the method for a test case. Currently, there's the private _get_test_method() method.

Current use case is writing RunTest implementations that change their behaviour based on annotations applied to the test method. (e.g. a thing that intermittently retries known-flaky tests).

Work-around for that use case is to have a different RunTest implementation for each test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions