mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
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
14 lines
293 B
Python
14 lines
293 B
Python
import pytest
|
|
|
|
from base_class_A import TestBaseClassA
|
|
|
|
|
|
class TestNewClass(TestBaseClassA):
|
|
|
|
@pytest.fixture
|
|
def some_fixture(self):
|
|
return 'fixture from TestNewClass'
|
|
|
|
def test_simple(self, some_<caret>fixture):
|
|
assert some_fixture == 'fixture from TestNewClass'
|