Skip to content

fix: support multiple python_functions patterns from pytest ini#111

Open
sruizr wants to merge 2 commits into
nvim-neotest:masterfrom
sruizr:fix/multiple-python-functions-patterns
Open

fix: support multiple python_functions patterns from pytest ini#111
sruizr wants to merge 2 commits into
nvim-neotest:masterfrom
sruizr:fix/multiple-python-functions-patterns

Conversation

@sruizr
Copy link
Copy Markdown

@sruizr sruizr commented Apr 16, 2026

getini('python_functions') returns a list but only [0] was taken, causing only the first pattern to be recognised by neotest.

Fix by joining all patterns in the Python script and splitting them back into a treesitter regex alternation in the Lua layer.

getini('python_functions') returns a list but only [0] was taken,
causing only the first pattern to be recognised by neotest.

Fix by joining all patterns in the Python script and splitting them
back into a treesitter regex alternation in the Lua layer.
…sting depth

- Extract describe_prefixes from pytest configuration at runtime
- Generate treesitter queries for container functions (describe, context, when, given, scenario, requirement)
- Support unlimited nesting depth for pytest-describe test organization
- Maintain backward compatibility with projects not using describe_prefixes
- Default to common pytest-describe prefixes if not configured
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants