2022-11-30 01:46:34 +00:00
|
|
|
"""Fixtures for FileUpload integration."""
|
2024-03-08 13:50:04 +00:00
|
|
|
|
2022-11-30 01:46:34 +00:00
|
|
|
from io import StringIO
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
|
|
|
def large_file_io() -> StringIO:
|
|
|
|
"""Generate a file on the fly. Simulates a large file."""
|
|
|
|
return StringIO(
|
|
|
|
2
|
|
|
|
* "Home Assistant is awesome. Open source home automation that puts local control and privacy first."
|
|
|
|
)
|