import uuid
from pathlib import Path
from typing import Generator

import pytest


@pytest.fixture
def extensions() -> Generator[set[str], None, None]:
    yield {"pdf", "txt", "jpeg", "sh", "py"}


@pytest.fixture
def source(tmp_path) -> Generator[Path, None, None]:
    path = tmp_path / "source"
    path.mkdir()
    yield path


@pytest.fixture
def target(tmp_path) -> Generator[Path, None, None]:
    path = tmp_path / "target"
    path.mkdir()
    yield path


@pytest.fixture
def unknown_ext_directory() -> Generator[str, None, None]:
    yield "some-random-directory"


@pytest.fixture
def random_filename() -> Generator[str, None, None]:
    yield str(uuid.uuid4().hex)


@pytest.fixture
def ext() -> Generator[str, None, None]:
    yield "jpeg"


@pytest.fixture
def date_format() -> Generator[str, None, None]:
    yield "%Y_%m_%d_%H%M%S"

@pytest.fixture
def digit_count() -> Generator[str, None, None]:
    yield "32"

import uuid
from pathlib import Path
from typing import Generator

import pytest


@pytest.fixture
def extensions() -> Generator[set[str], None, None]:
    yield {"pdf", "txt", "jpeg", "sh", "py"}


@pytest.fixture
def source(tmp_path) -> Generator[Path, None, None]:
    path = tmp_path / "source"
    path.mkdir()
    yield path


@pytest.fixture
def target(tmp_path) -> Generator[Path, None, None]:
    path = tmp_path / "target"
    path.mkdir()
    yield path


@pytest.fixture
def unknown_ext_directory() -> Generator[str, None, None]:
    yield "some-random-directory"


@pytest.fixture
def random_filename() -> Generator[str, None, None]:
    yield str(uuid.uuid4().hex)


@pytest.fixture
def ext() -> Generator[str, None, None]:
    yield "jpeg"


@pytest.fixture
def date_format() -> Generator[str, None, None]:
    yield "%Y_%m_%d_%H%M%S"

@pytest.fixture
def digit_count() -> Generator[str, None, None]:
    yield "32"
