Skip to content

pytest: support for node ids in general #15

@blueyed

Description

@blueyed

Currently only ::method is matched, but there is also ::Class::method, and e.g. test_pytest_param_example.py::test_eval[1+7-8].

As for matching the ::Class I think using the normal command / instead of search() might work - using two patterns (/^\s*class Class;/\s*def method).
Currently s:setpos only supports calling a function though - are you up for changing this?
(I do not think that we can assume execute() to be available)
Would an internal method wrapping :normal make sense - maybe using execute() if it is available?

As for the parametrized suffix: this should get matched, but ignored - it all goes to the same method.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions