mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-18 16:07:10 +00:00
16 lines
308 B
Python
16 lines
308 B
Python
|
|
from typing import Any, Generator
|
||
|
|
|
||
|
|
import pytest
|
||
|
|
|
||
|
|
from fixtures import types
|
||
|
|
|
||
|
|
|
||
|
|
@pytest.fixture(scope="package")
|
||
|
|
def tmpfs(
|
||
|
|
tmp_path_factory: pytest.TempPathFactory,
|
||
|
|
) -> Generator[types.LegacyPath, Any, None]:
|
||
|
|
def _tmp(basename: str):
|
||
|
|
return tmp_path_factory.mktemp(basename)
|
||
|
|
|
||
|
|
yield _tmp
|