pyinfra/test/fixtures/input.py
2022-04-26 16:34:58 +02:00

16 lines
295 B
Python

import pytest
@pytest.fixture
def data(data_type, pdf):
if data_type == "pdf":
return pdf
elif data_type == "bytestring":
return "content".encode("latin1")
@pytest.fixture
def data_items(item_type):
if item_type == "string":
return iter([b"content"] * 4)