Files
2025-11-03 15:09:21 +00:00

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