Skip to content

JumpToFixture chooses wrong fixture definition #8

Description

@dapc11

Hello,

If you have a Python project, with multiple test files (e.g. test_x.py and test_y.py).

Both of these test files declares the following fixture:

@pytest.fixture
def config_dir(tmp_path):
    return tmp_path

Both test files have tests using it's local config_dir fixture. But if one invokes PytrizeJumpFixture in test_y.py, it would jump to the declaration in test_x.py instead of the one in test_y.py.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions