Skip to content

Wrong scope detection for inline declaration of fixtures #109

@benediktziegler

Description

@benediktziegler

The scope is not detected correctly by the lsp for following fixture declarations:

mocker = pytest.fixture()(_mocker)  # default scope is function
class_mocker = pytest.fixture(scope="class")(_mocker)  # detected as function scope
module_mocker = pytest.fixture(scope="module")(_mocker)  # detected as function scope
...

As defined in pytest_mock.

Support needed.

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