12 lines
455 B
Python
12 lines
455 B
Python
import pytest
|
|
from funcy import lmap
|
|
|
|
from pyinfra.rest import post_partial, unpack
|
|
|
|
|
|
@pytest.mark.parametrize("batched", [True, False])
|
|
@pytest.mark.parametrize("item_type", ["pdf", "string", "image"])
|
|
def test_sending_partial_request(url, input_data_items, metadata, operation, target_data_items, server_process):
|
|
output = lmap(unpack, post_partial(f"{url}/process", input_data_items, metadata))
|
|
assert output == lmap(unpack, target_data_items)
|