Files
openide/python/testData/testPytestFixtureResolving/testReservedFixtures/test_monkeypatch_fixture.py
Egor.Eliseev 547fafc199 PY-30033 Support resolving for pytest.mark.usefixtures
Add 'PyTestReferenceAsStringProvider' for fixtures from pytest.mark.usefixtures attributes.
Add new field 'myTextRange' to 'BaseReference' class.
It's needed for specify the text range for proper highlighting.
For example, to highlight text in a string without quotes.

GitOrigin-RevId: 5b9094169b71dd57d9091d6907346ca69f631ef3
2023-06-01 09:35:11 +00:00

5 lines
55 B
Python

import pytest
def test_(monkey<caret>patch):
pass