mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 08:00:18 +07:00
Merge-request: IJ-MR-181099 Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com> GitOrigin-RevId: 7299d76d38ae5a823a3b0cae7ba5e2a0cc693d13
22 lines
291 B
Python
22 lines
291 B
Python
import pytest
|
|
from contextlib import contextmanager
|
|
|
|
|
|
class C:
|
|
def bla(self):
|
|
...
|
|
|
|
|
|
@contextmanager
|
|
def create():
|
|
yield C()
|
|
|
|
|
|
@pytest.fixture
|
|
def client():
|
|
pass
|
|
|
|
|
|
def test_():
|
|
with create() as client:
|
|
assert client.bla() == 1 # no inspection warning expected |