Files
ruff/resources/test/fixtures/flake8_pytest_style/PT022.py
2023-01-02 16:34:17 -05:00

18 lines
285 B
Python

import pytest
@pytest.fixture()
def ok_complex_logic():
if some_condition:
resource = acquire_resource()
yield resource
resource.release()
return
yield None
@pytest.fixture()
def error():
resource = acquire_resource()
yield resource