16 lines
307 B
Python
16 lines
307 B
Python
import pytest
|
|
import tempfile
|
|
from pathlib import Path
|
|
|
|
|
|
@pytest.fixture(scope='session')
|
|
def tmp_dir():
|
|
with tempfile.TemporaryDirectory() as tmp_dir:
|
|
yield Path(tmp_dir)
|
|
|
|
|
|
@pytest.fixture
|
|
def mock_device_metadata_json_(tmp_dir):
|
|
with tempfile.TemporaryDirectory() as tmp_dir:
|
|
pass
|