import pytest
from typing import Generator, Iterator
@pytest.fixture
def sample_fixture() -> int:
return 42
@pytest.fixture
def another_fixture() -> str:
return "hello world"
@pytest.fixture
def cli_runner() -> str:
return "parent_cli_runner"
@pytest.fixture
def database() -> str:
return "parent_database"
@pytest.fixture
def shared_resource() -> dict[str, str]:
return {"status": "ready"}
@pytest.fixture
def generator_fixture() -> Generator[str, None, None]:
yield "generated_value"
@pytest.fixture
def iterator_fixture() -> Iterator[int]:
yield 123