refactor(tests): reorganize unit tests module structure

This commit is contained in:
Ahmed Allam
2025-12-03 23:55:44 +04:00
committed by Ahmed Allam
parent 6c5c0b0d1c
commit 35dd9d0a8f
10 changed files with 40 additions and 41 deletions

34
tests/tools/conftest.py Normal file
View File

@@ -0,0 +1,34 @@
"""Fixtures for strix.tools tests."""
from collections.abc import Callable
from typing import Any
import pytest
@pytest.fixture
def sample_function_with_types() -> Callable[..., None]:
"""Create a sample function with type annotations for testing argument conversion."""
def func(
name: str,
count: int,
enabled: bool,
ratio: float,
items: list[Any],
config: dict[str, Any],
optional: str | None = None,
) -> None:
pass
return func
@pytest.fixture
def sample_function_no_annotations() -> Callable[..., None]:
"""Create a sample function without type annotations."""
def func(arg1, arg2, arg3): # type: ignore[no-untyped-def]
pass
return func